From: Christian Herdtweck Date: Thu, 28 May 2015 12:35:41 +0000 (+0200) Subject: fixed bug that caused congestion flag to stay on when all is congested and fail flag... X-Git-Url: http://developer.intra2net.com/git/?p=pingcheck;a=commitdiff_plain;h=81686580fb91967c4fcb4dbbd9e21762dbf85c2e fixed bug that caused congestion flag to stay on when all is congested and fail flag is set in HostStatus --- diff --git a/src/host/hoststatus.cpp b/src/host/hoststatus.cpp index 42e5cc7..546fab7 100644 --- a/src/host/hoststatus.cpp +++ b/src/host/hoststatus.cpp @@ -230,7 +230,10 @@ void HostStatus::analyze_ping_statistics() { GlobalLogger.notice() << log_prefix() << "All pings timed out despite " << "using more pings per IP --> assume connection is really down"; + PingsFailedCount += PingCongestionCount; + PingCongestionCount = 0; ExceededPingFailedLimit = true; + ExceededPingCongestionLimit = false; } // notify if the amount of pings that failed exceed the limit