summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c06a468)
raw | patch | inline | side by side (parent: c06a468)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Tue, 2 Mar 2004 05:25:33 +0000 (05:25 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Tue, 2 Mar 2004 05:25:33 +0000 (05:25 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@835 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index e6f88e9df10898cfdf4b4c8586b219617f2dcda6..b676eec50331bac8c4a29e29ee13cac2b8183d39 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
socket_timeout = atoi (optarg);
break;
case 'c': /* critical time threshold */
- if (!is_intnonneg (optarg))
+ if (!is_nonnegative (optarg))
usage2 (_("invalid critical threshold"), optarg);
else {
critical_time = strtod (optarg, NULL);
}
break;
case 'w': /* warning time threshold */
- if (!is_intnonneg (optarg))
+ if (!is_nonnegative (optarg))
usage2 (_("invalid warning threshold"), optarg);
else {
warning_time = strtod (optarg, NULL);