Sfoglia il codice sorgente

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
Matthew Kent 21 anni fa
parent
commit
04ffd42a57
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      plugins/check_disk.c

+ 1 - 1
plugins/check_disk.c

@@ -493,7 +493,7 @@ print_path (const char *mypath)
 int
 validate_arguments (uintmax_t w, uintmax_t c, double wp, double cp, char *mypath)
 {
-	if (w == 0 && c == 0 && wp < 0.0 && cp < 0.0) {
+	if (w < 0 && c < 0 && wp < 0.0 && cp < 0.0) {
 		printf (_("INPUT ERROR: No thresholds specified"));
 		print_path (mypath);
 		return ERROR;