// HostPingIntervalOption
//-----------------------------------------------------------------------------
-const std::string range_separator = "...";
+const std::string range_separator = "..";
const int failure_interval = 60;
HostPingIntervalOption::HostPingIntervalOption() :
// found separator --> chose interval value from interval
interval_part = I2n::trim(host_interval_str.substr(0, range_separator_pos));
host_interval_lower = boost::lexical_cast<int>(interval_part);
- interval_part = I2n::trim(host_interval_str.substr(range_separator_pos+3));
+ interval_part = I2n::trim(host_interval_str.substr(
+ range_separator_pos + range_separator.length()));
host_interval_upper = boost::lexical_cast<int>(interval_part);
BOOST_ASSERT( (0 < host_interval_lower) &&
host_interval_upper);
GlobalLogger.info() << get_command_string() << "=" << host_interval
- << " from range " << host_interval_lower << "..." << host_interval_upper
+ << " from range " << host_interval_lower << ".." << host_interval_upper
<< endl;
}
host_item->set_interval_in_sec( host_interval );