aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2004-03-02 05:25:33 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2004-03-02 05:25:33 +0000
commit82ff622fd0e9fa654a0c54667b19bf92676479d0 (patch)
tree75fbd5d9aea2739836b0fb3e5c8dbdc73b80c51c /plugins/check_http.c
parentc06a4680946c6be0f19342dfd2737bebee8690bd (diff)
downloadmonitoring-plugins-82ff622fd0e9fa654a0c54667b19bf92676479d0.tar.gz
relax check for -w/-c to accept floats (bug report from Warrick FitzGerald)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@835 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index e6f88e9d..b676eec5 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -255,7 +255,7 @@ process_arguments (int argc, char **argv)
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);
@@ -263,7 +263,7 @@ process_arguments (int argc, char **argv)
}
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);