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
This commit is contained in:
Karl DeBisschop 2004-03-02 05:25:33 +00:00
parent c06a468094
commit 82ff622fd0

View file

@ -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);