diff --git a/src/main-options.cpp b/src/main-options.cpp index 6a59b66e..f5ecbfd3 100644 --- a/src/main-options.cpp +++ b/src/main-options.cpp @@ -202,7 +202,7 @@ void MainOptions::parse(const std::list &args) { } else if (k == "--log-file-max-count") { log_file_max_count = std::atoi(v.c_str()); } else if (k == "--log-file-rotate-interval") { - log_file_rotate_interval = std::atof(v.c_str()); + log_file_rotate_interval = utils::get_seconds(v); } else if (k == "--log-level") { if ( utils::starts_with(v, "debug") && (