diff options
author | aristocratos <gnmjpl@gmail.com> | 2022-05-28 20:48:02 +0200 |
---|---|---|
committer | aristocratos <gnmjpl@gmail.com> | 2022-05-28 20:48:02 +0200 |
commit | 7291c7dfdca7d27ee5f8413ff2782e000b60d514 (patch) | |
tree | 95c5138402de20756aa25eecfb79e6002955275a /src | |
parent | c257938d46a9aa20adbe1315c399d64654bd39b2 (diff) |
Fixed: Net sync scale bug
Diffstat (limited to 'src')
-rw-r--r-- | src/btop_config.cpp | 2 | ||||
-rw-r--r-- | src/linux/btop_collect.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/btop_config.cpp b/src/btop_config.cpp index 137b168..3b3af2f 100644 --- a/src/btop_config.cpp +++ b/src/btop_config.cpp @@ -243,7 +243,7 @@ namespace Config { {"base_10_sizes", false}, {"io_graph_combined", false}, {"net_auto", true}, - {"net_sync", false}, + {"net_sync", true}, {"show_battery", true}, {"vim_keys", false}, {"tty_mode", false}, diff --git a/src/linux/btop_collect.cpp b/src/linux/btop_collect.cpp index 95028eb..bb3b764 100644 --- a/src/linux/btop_collect.cpp +++ b/src/linux/btop_collect.cpp @@ -1153,6 +1153,7 @@ namespace Net { //? Set counters for auto scaling if (net_auto and selected_iface == iface) { + if (net_sync and saved_stat.speed < net.at(iface).stat.at(dir == "download" ? "upload" : "download").speed) continue; if (saved_stat.speed > graph_max[dir]) { ++max_count[dir][0]; if (max_count[dir][1] > 0) --max_count[dir][1]; |