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 --- internal/config/config.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'internal/config/config.go') diff --git a/internal/config/config.go b/internal/config/config.go index e523372..0fc80d4 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -23,7 +23,6 @@ type Config struct { Height int MaxWidth int NetAverage int - NetInt string NetLink string ShowCores bool ShowMem bool @@ -104,7 +103,7 @@ func (c *Config) parseReader(f *os.File) error { validKeys := map[string]bool{ "title": true, "barwidth": true, "cpuaverage": true, "extended": true, "hasagent": true, "height": true, "maxwidth": true, "netaverage": true, - "netint": true, "netlink": true, "showcores": true, "showmem": true, + "netlink": true, "showcores": true, "showmem": true, "shownet": true, "sshopts": true, "cluster": true, } scanner := bufio.NewScanner(f) @@ -158,8 +157,6 @@ func (c *Config) set(key, val string) { if n, err := strconv.Atoi(val); err == nil { c.NetAverage = n } - case "netint": - c.NetInt = val case "netlink": c.NetLink = val case "showcores": @@ -198,7 +195,6 @@ func (c *Config) writeTo(f *os.File) error { writeInt("height", c.Height) writeInt("maxwidth", c.MaxWidth) writeInt("netaverage", c.NetAverage) - writeStr("netint", c.NetInt) writeStr("netlink", c.NetLink) writeBool("showcores", c.ShowCores) writeBool("showmem", c.ShowMem) -- cgit v1.2.3