summaryrefslogtreecommitdiff
path: root/internal/collector/protocol.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-18 14:14:52 +0200
committerPaul Buetow <paul@buetow.org>2026-02-18 14:14:52 +0200
commitf7887117c5269ed0336cc058c78c4b222e0e6b34 (patch)
tree53e9c4b5163b29b0987beda78572ecdb13c31cf0 /internal/collector/protocol.go
parent69f5017434298f1ffd4cdc30c30b95d0f4bd344f (diff)
feat: add disk I/O stats (read/write throughput bars, hotkey 5, auto-scale)
Add a new disk stats category that reads /proc/diskstats, shows read/write throughput as colored bars (purple/darker purple like network RX/TX), with optional utilization % overlay in extended mode. Hotkey 5 cycles: aggregate (sum all whole-disk devices) → per-device → off. Auto-scale with decay and optional fixed override via --diskmax / diskmax config key. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/collector/protocol.go')
-rw-r--r--internal/collector/protocol.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/collector/protocol.go b/internal/collector/protocol.go
index 26e8a8d..92557e1 100644
--- a/internal/collector/protocol.go
+++ b/internal/collector/protocol.go
@@ -5,5 +5,6 @@ const (
ModeLoadAvg = "M LOADAVG"
ModeMemStats = "M MEMSTATS"
ModeNetStats = "M NETSTATS"
- ModeCPUStats = "M CPUSTATS"
+ ModeDiskStats = "M DISKSTATS"
+ ModeCPUStats = "M CPUSTATS"
)