mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-29 22:51:35 +02:00
Fixed: Net sync scale bug
This commit is contained in:
parent
c257938d46
commit
7291c7dfdc
@ -243,7 +243,7 @@ namespace Config {
|
|||||||
{"base_10_sizes", false},
|
{"base_10_sizes", false},
|
||||||
{"io_graph_combined", false},
|
{"io_graph_combined", false},
|
||||||
{"net_auto", true},
|
{"net_auto", true},
|
||||||
{"net_sync", false},
|
{"net_sync", true},
|
||||||
{"show_battery", true},
|
{"show_battery", true},
|
||||||
{"vim_keys", false},
|
{"vim_keys", false},
|
||||||
{"tty_mode", false},
|
{"tty_mode", false},
|
||||||
|
@ -1153,6 +1153,7 @@ namespace Net {
|
|||||||
|
|
||||||
//? Set counters for auto scaling
|
//? Set counters for auto scaling
|
||||||
if (net_auto and selected_iface == iface) {
|
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]) {
|
if (saved_stat.speed > graph_max[dir]) {
|
||||||
++max_count[dir][0];
|
++max_count[dir][0];
|
||||||
if (max_count[dir][1] > 0) --max_count[dir][1];
|
if (max_count[dir][1] > 0) --max_count[dir][1];
|
||||||
|
Loading…
Reference in New Issue
Block a user