Make 100ms the minimal refresh rate

Closes: https://github.com/aristocratos/btop/issues/1171
This commit is contained in:
Steffen Winter
2025-06-01 17:35:11 +02:00
committed by Steffen
parent 61fbc11044
commit 6d4bcacfee

View File

@@ -136,7 +136,7 @@ namespace Cli {
auto arg = *it;
try {
auto refresh_rate = std::min(std::stoul(arg.data()), 100UL);
auto refresh_rate = std::max(std::stoul(arg.data()), 100UL);
cli.updates = refresh_rate;
} catch (std::invalid_argument& e) {
error("Update must be a positive number");