mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
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:
parent
c06a468094
commit
82ff622fd0
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue