|
@@ -222,10 +222,10 @@ process_arguments (int argc, char **argv)
|
|
|
/* this will abort in case of invalid ranges */
|
|
/* this will abort in case of invalid ranges */
|
|
|
set_thresholds (&thlds, warning_range, critical_range);
|
|
set_thresholds (&thlds, warning_range, critical_range);
|
|
|
|
|
|
|
|
- if (thlds->warning->end <= 0)
|
|
|
|
|
- usage4 (_("Warning threshold must be a positive integer"));
|
|
|
|
|
- if (thlds->critical->end <= 0)
|
|
|
|
|
- usage4 (_("Critical threshold must be a positive integer"));
|
|
|
|
|
|
|
+ if (thlds->warning->end < 0)
|
|
|
|
|
+ usage4 (_("Warning threshold must be a zero or greater"));
|
|
|
|
|
+ if (thlds->critical->end < 0)
|
|
|
|
|
+ usage4 (_("Critical threshold must be a zero or greater"));
|
|
|
|
|
|
|
|
return OK;
|
|
return OK;
|
|
|
}
|
|
}
|