mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 00:32:05 -04:00
Revert last patch: it works but not really for the reason I though.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1562 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
a61a5ead01
commit
c653cd7010
1 changed files with 1 additions and 5 deletions
|
|
@ -399,11 +399,7 @@ validate_arguments ()
|
|||
if (max_packets == -1)
|
||||
max_packets = DEFAULT_MAX_PACKETS;
|
||||
|
||||
max_seconds = crta * max_packets;
|
||||
/* Round up max_seconds because we use only the int part */
|
||||
if (max_seconds != (int)max_seconds)
|
||||
max_seconds = (int)max_seconds + 1;
|
||||
|
||||
max_seconds = crta / 1000.0 * max_packets + max_packets;
|
||||
if (max_seconds > timeout_interval)
|
||||
timeout_interval = (int)max_seconds;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue