summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-14 22:22:57 +0200
committerPaul Buetow <paul@buetow.org>2026-02-14 22:22:57 +0200
commitd0bed33cf41ac4917a9427c98e63351367d71298 (patch)
tree9a49a06516aa20dc78a42fa873d6f77a0e411488 /cmd
parent2265b31a6eeaae8d6aac52e1fa32a33863733192 (diff)
Aggregate all net interfaces, remove n hotkey, fix net bar decay bugv0.9.0
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 <noreply@anthropic.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/loadbars/main.go8
1 files changed, 2 insertions, 6 deletions
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 <n> Window height (default 150)
--showcores Show per-CPU bars
--showmem Show memory bars
- --shownet Show network bars
- --netint <iface> 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 <speed> 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)
}