fixed bug that caused congestion flag to stay on when all is congested and fail flag...
[pingcheck] / 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