added variable for threshold for switching from "all congested" --> "connection failed"
[pingcheck] / src / host / pingscheduler.cpp
index b272379..e64725a 100644 (file)
@@ -77,6 +77,7 @@ PingScheduler::PingScheduler(
         const long ping_interval_in_sec,
         const int ping_fail_percentage_limit,
         const int ping_congestion_percentage_limit,
+        const int congest_caused_by_fail_percentage_limit,
         const int ping_congestion_duration_thresh,
         const int ping_reply_timeout,
         LinkStatusItem link_analyzer,
@@ -100,6 +101,7 @@ PingScheduler::PingScheduler(
     PingReplyTimeoutOrig( ping_reply_timeout ),
     HostAnalyzer( destination_address, ping_fail_percentage_limit,
                   ping_congestion_percentage_limit,
+                  congest_caused_by_fail_percentage_limit,
                   ping_congestion_duration_thresh, n_parallel_pings,
                   link_analyzer ),
     Resolver(),