changed value of link_up/down_interval from minutes to seconds
[pingcheck] / src / link / linkstatus.h
index 6353f6c..19118f1 100644 (file)
@@ -42,8 +42,8 @@ class LinkStatus
 public:
     LinkStatus(
             const int hosts_down_limit,
-            const int link_up_interval_in_min,
-            const int link_down_interval_in_min,
+            const int link_up_interval_in_sec,
+            const int link_down_interval_in_sec,
             const std::string &status_notifier_cmd
     );
     ~LinkStatus();
@@ -100,9 +100,9 @@ public:
     /// List of hosts down (obvious isn't it?)
     std::set<std::string> HostsDownList;
     /// Interval the link have to be stable in order to consider it is functional
-    const int LinkUpIntervalInMin;
+    const int LinkUpIntervalInSec;
     /// Interval the link have to be down in order to consider it is non-functional
-    const int LinkDownIntervalInMin;
+    const int LinkDownIntervalInSec;
     /// Keep track of the actual link status
     LinkStatus::Status CurrentLinkStatus;
     /// Indicates if the last link status change was notified