From c653cd701020d9a23434cb3b713cabf308666ef8 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Sat, 6 Jan 2007 06:33:17 +0000 Subject: [PATCH] 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 --- plugins/check_ping.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/check_ping.c b/plugins/check_ping.c index a4efc6c..eb3a6db 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c @@ -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; -- 2.30.2