diff --git a/dlib/global_optimization/find_max_global.h b/dlib/global_optimization/find_max_global.h index 04b59d9b8..aed90a26d 100644 --- a/dlib/global_optimization/find_max_global.h +++ b/dlib/global_optimization/find_max_global.h @@ -112,7 +112,7 @@ template static auto go(T&& f, const matrix& a) -> de // ---------------------------------------------------------------------------------------- - const auto FOREVER = std::chrono::hours(24*356*290); // 290 years + const auto FOREVER = std::chrono::hours(24*365*290); // 290 years // ----------------------------------------------------------------------------------------