diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-13 23:35:17 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-13 23:35:17 +0200 |
| commit | f7e03c864addd6c46f49558275cbb2e7050783d6 (patch) | |
| tree | fce4a9e3c7251cf24d662c3a110cd656a96f704e /internal/config | |
| parent | 8ce6aa0a181e123f156ef3d1b75d939f56757ac6 (diff) | |
Document hotkeys in README; fix display/config; net interface help
- README: add Hotkeys section (1,2,3,e,h,n,q,w,a,y,d,c,f,v,arrows)
- README: network interface and netlink config docs
- Display: default window width 1200; clear bar slots to fix CPU/mem/net mixing
- Display: numBars count only non-nil hosts (layout matches draw)
- Display: network bars (key 3), net interface choice and n=cycle
- Display: extended peak line (e), cpu/net avg keys (a,y,d,c) with feedback
- Config: default barwidth 1200; netint/netlink in --help
- Collector: parse_test Linux-style net stats
Co-authored-by: Cursor <cursoragent@cursor.com>
Diffstat (limited to 'internal/config')
| -rw-r--r-- | internal/config/config.go | 2 | ||||
| -rw-r--r-- | internal/config/config_test.go | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index 256484a..42db523 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -35,7 +35,7 @@ type Config struct { // Default returns a Config with default values. func Default() Config { return Config{ - BarWidth: 20, + BarWidth: 1200, CPUAverage: 10, Extended: false, HasAgent: false, diff --git a/internal/config/config_test.go b/internal/config/config_test.go index d51feb7..dfa499c 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -14,10 +14,10 @@ func TestConfig_parseReader(t *testing.T) { wantBar int wantExt bool }{ - {"empty", "", 20, false}, + {"empty", "", 1200, false}, {"barwidth", "barwidth=42\n", 42, false}, - {"extended_1", "extended=1\n", 20, true}, - {"extended_true", "extended=true\n", 20, true}, + {"extended_1", "extended=1\n", 1200, true}, + {"extended_true", "extended=true\n", 1200, true}, {"comments", "# foo\nbarwidth=10\n# bar\n", 10, false}, {"unknown_key", "barwidth=5\nunknown=ignored\n", 5, false}, {"multiple", "barwidth=30\nextended=1\nshowcores=1\n", 30, true}, |
