From 6d4bcacfeebc4bfdf56e6e0a7005d49f80c3b9af Mon Sep 17 00:00:00 2001 From: Steffen Winter Date: Sun, 1 Jun 2025 17:35:11 +0200 Subject: [PATCH] Make 100ms the minimal refresh rate Closes: https://github.com/aristocratos/btop/issues/1171 --- src/btop_cli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/btop_cli.cpp b/src/btop_cli.cpp index e5f22d35..bf1b4d97 100644 --- a/src/btop_cli.cpp +++ b/src/btop_cli.cpp @@ -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");