[Nagiosplug-checkins] nagiosplug/plugins check_disk.c,1.46,1.47

Matthew Kent mattkent at users.sourceforge.net
Wed Nov 24 21:10:04 CET 2004


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27754

Modified Files:
	check_disk.c 
Log Message:
>From old test harness code, make ./check_disk -w 0 -c 0 / valid parameters again


Index: check_disk.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_disk.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- check_disk.c	24 Nov 2004 00:46:38 -0000	1.46
+++ check_disk.c	25 Nov 2004 05:09:15 -0000	1.47
@@ -493,7 +493,7 @@
 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;





More information about the Commits mailing list