summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Kent <mattkent@users.sourceforge.net>2004-11-25 05:09:15 +0000
committerMatthew Kent <mattkent@users.sourceforge.net>2004-11-25 05:09:15 +0000
commit04ffd42a576b43e8e9a59c420b11735b53cc4130 (patch)
tree71c1bb7617bd22422458226441208f06bfd36b42
parent9fb440a991c532c7df026e7f83c5d0150ed3b5a9 (diff)
downloadmonitoring-plugins-04ffd42a576b43e8e9a59c420b11735b53cc4130.tar.gz
From old test harness code, make ./check_disk -w 0 -c 0 / valid parameters again
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@943 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index d8da02d6..95e84751 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -493,7 +493,7 @@ print_path (const char *mypath)
493int 493int
494validate_arguments (uintmax_t w, uintmax_t c, double wp, double cp, char *mypath) 494validate_arguments (uintmax_t w, uintmax_t c, double wp, double cp, char *mypath)
495{ 495{
496 if (w == 0 && c == 0 && wp < 0.0 && cp < 0.0) { 496 if (w < 0 && c < 0 && wp < 0.0 && cp < 0.0) {
497 printf (_("INPUT ERROR: No thresholds specified")); 497 printf (_("INPUT ERROR: No thresholds specified"));
498 print_path (mypath); 498 print_path (mypath);
499 return ERROR; 499 return ERROR;