From 82ff622fd0e9fa654a0c54667b19bf92676479d0 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Tue, 2 Mar 2004 05:25:33 +0000 Subject: 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 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) 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); -- cgit v0.10-9-g596f