From 81686580fb91967c4fcb4dbbd9e21762dbf85c2e Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Thu, 28 May 2015 14:35:41 +0200 Subject: [PATCH] fixed bug that caused congestion flag to stay on when all is congested and fail flag is set in HostStatus --- src/host/hoststatus.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) 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 -- 1.7.1