changed value of link_up/down_interval from minutes to seconds
[pingcheck] / src / config / option / linkupintervaloption.cpp
index 5598a59..ae69a2f 100644 (file)
@@ -34,8 +34,8 @@ using I2n::Logger::GlobalLogger;
 LinkUpIntervalOption::LinkUpIntervalOption() :
     ConfigurationOption(
         "link-up-interval",
-        value<int>()->default_value( 5 ), // 5 minutes
-        "How long the link must be responsive in order to consider it stable."
+        value<int>()->default_value( 300 ), // 5 minutes
+        "How many seconds the link must be responsive in order to consider it stable."
     )
 {
 }
@@ -52,11 +52,11 @@ bool LinkUpIntervalOption::parse(
     // link-up-interval
     if ( 1 <= vm.count( get_command_string() ) )
     {
-        int link_up_interval_in_min = vm[ get_command_string() ].as<int>();
-        configuration->set_link_up_interval_in_min( link_up_interval_in_min );
+        int link_up_interval_secs = vm[ get_command_string() ].as<int>();
+        configuration->set_link_up_interval_in_sec( link_up_interval_secs );
 
         GlobalLogger.info() << get_command_string() << "="
-                << link_up_interval_in_min << endl;
+                << link_up_interval_secs << endl;
 
         return true;
     }