mirror of
https://github.com/aristocratos/btop.git
synced 2026-04-21 07:29:51 -04:00
Make 100ms the minimal refresh rate
Closes: https://github.com/aristocratos/btop/issues/1171
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user