diff options
-rw-r--r-- | plugins/check_users.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_users.c b/plugins/check_users.c index a10249c4..f6f4b362 100644 --- a/plugins/check_users.c +++ b/plugins/check_users.c @@ -222,9 +222,9 @@ process_arguments (int argc, char **argv) /* this will abort in case of invalid ranges */ set_thresholds (&thlds, warning_range, critical_range); - if (thlds->warning->end <= 0) + if (thlds->warning->end < 0) usage4 (_("Warning threshold must be a positive integer")); - if (thlds->critical->end <= 0) + if (thlds->critical->end < 0) usage4 (_("Critical threshold must be a positive integer")); return OK; |