fixed bug that caused congestion flag to stay on when all is congested and fail flag...
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 28 May 2015 12:35:41 +0000 (14:35 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 28 May 2015 12:35:41 +0000 (14:35 +0200)
src/host/hoststatus.cpp

index 42e5cc7..546fab7 100644 (file)
@@ -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