diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2004-03-02 05:25:33 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2004-03-02 05:25:33 (GMT) |
commit | 82ff622fd0e9fa654a0c54667b19bf92676479d0 (patch) | |
tree | 75fbd5d9aea2739836b0fb3e5c8dbdc73b80c51c | |
parent | c06a4680946c6be0f19342dfd2737bebee8690bd (diff) | |
download | monitoring-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
-rw-r--r-- | plugins/check_http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index e6f88e9..b676eec 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -255,7 +255,7 @@ process_arguments (int argc, char **argv) | |||
255 | socket_timeout = atoi (optarg); | 255 | socket_timeout = atoi (optarg); |
256 | break; | 256 | break; |
257 | case 'c': /* critical time threshold */ | 257 | case 'c': /* critical time threshold */ |
258 | if (!is_intnonneg (optarg)) | 258 | if (!is_nonnegative (optarg)) |
259 | usage2 (_("invalid critical threshold"), optarg); | 259 | usage2 (_("invalid critical threshold"), optarg); |
260 | else { | 260 | else { |
261 | critical_time = strtod (optarg, NULL); | 261 | critical_time = strtod (optarg, NULL); |
@@ -263,7 +263,7 @@ process_arguments (int argc, char **argv) | |||
263 | } | 263 | } |
264 | break; | 264 | break; |
265 | case 'w': /* warning time threshold */ | 265 | case 'w': /* warning time threshold */ |
266 | if (!is_intnonneg (optarg)) | 266 | if (!is_nonnegative (optarg)) |
267 | usage2 (_("invalid warning threshold"), optarg); | 267 | usage2 (_("invalid warning threshold"), optarg); |
268 | else { | 268 | else { |
269 | warning_time = strtod (optarg, NULL); | 269 | warning_time = strtod (optarg, NULL); |