diff options
author | nobounce <steffen.winter@proton.me> | 2023-10-03 13:54:28 +0200 |
---|---|---|
committer | Steffen Winter <steffen.winter@proton.me> | 2024-01-03 17:35:54 +0100 |
commit | 1e6bf18c65a9083b30b7da339d2636eda4939c4a (patch) | |
tree | 21342bf63e4092fed91922e7c59319efffd98e0f /src/btop_config.cpp | |
parent | b124db78c071af5cae047549559f801d05438d71 (diff) |
Add flag to set the refresh rate from command line
Diffstat (limited to 'src/btop_config.cpp')
-rw-r--r-- | src/btop_config.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/btop_config.cpp b/src/btop_config.cpp index 535d8c8..b8a5f67 100644 --- a/src/btop_config.cpp +++ b/src/btop_config.cpp @@ -488,8 +488,8 @@ namespace Config { if (name == "update_ms" and i_value < 100) validError = "Config value update_ms set too low (<100)."; - else if (name == "update_ms" and i_value > 86400000) - validError = "Config value update_ms set too high (>86400000)."; + else if (name == "update_ms" and i_value > ONE_DAY_MILLIS) + validError = fmt::format("Config value update_ms set too high (>{}).", ONE_DAY_MILLIS); else return true; |