From d0bed33cf41ac4917a9427c98e63351367d71298 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 14 Feb 2026 22:22:57 +0200 Subject: Aggregate all net interfaces, remove n hotkey, fix net bar decay bug Sum RX/TX across all non-lo interfaces instead of picking a single one. Remove the n hotkey (cycle interface), netint config field, and --netint flag since they are no longer needed. Fix pre-existing bug where net bars decayed to zero between collector updates (~19 of 20 frames had target=0, making bars invisible even during heavy downloads). Co-Authored-By: Claude Opus 4.6 --- cmd/loadbars/main.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cmd') diff --git a/cmd/loadbars/main.go b/cmd/loadbars/main.go index cd834ab..3d7fe77 100644 --- a/cmd/loadbars/main.go +++ b/cmd/loadbars/main.go @@ -26,7 +26,6 @@ func main() { flag.IntVar(&cfg.MaxWidth, "maxwidth", cfg.MaxWidth, "Set max width") flag.IntVar(&cfg.CPUAverage, "cpuaverage", cfg.CPUAverage, "Num of CPU samples for avg") flag.IntVar(&cfg.NetAverage, "netaverage", cfg.NetAverage, "Num of net samples for avg") - flag.StringVar(&cfg.NetInt, "netint", cfg.NetInt, "Interface to show netstats for") flag.StringVar(&cfg.NetLink, "netlink", cfg.NetLink, "Link speed (mbit, 10mbit, 100mbit, gbit, 10gbit or number)") flag.BoolVar(&cfg.ShowCores, "showcores", cfg.ShowCores, "Toggle core display") flag.BoolVar(&cfg.ShowMem, "showmem", cfg.ShowMem, "Toggle mem display") @@ -119,16 +118,13 @@ Options: --height Window height (default 150) --showcores Show per-CPU bars --showmem Show memory bars - --shownet Show network bars - --netint Network interface for net bars (e.g. eth0, enp0s3). - Default: first non-lo. Press 'n' in-app to cycle. + --shownet Show network bars (aggregates all non-lo interfaces) --netlink Link speed for %% (gbit, 10gbit, mbit, 100mbit, or number). Default: gbit. --extended Extended display (peak line) --help This help --version Print version -Config: netint and netlink can be set in ~/.loadbarsrc. Press '3' then see -stdout for which interface is used; press 'n' to cycle. Press 'h' for hotkeys. +Config: netlink can be set in ~/.loadbarsrc. Press 'h' for hotkeys. `, version.Version, constants.CSSHConfFile) } -- cgit v1.2.3