diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-14 22:22:57 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-14 22:22:57 +0200 |
| commit | d0bed33cf41ac4917a9427c98e63351367d71298 (patch) | |
| tree | 9a49a06516aa20dc78a42fa873d6f77a0e411488 /internal/config/config.go | |
| parent | 2265b31a6eeaae8d6aac52e1fa32a33863733192 (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 'internal/config/config.go')
| -rw-r--r-- | internal/config/config.go | 6 |
1 files changed, 1 insertions, 5 deletions
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) |
