add swap usage chart

This commit is contained in:
Henry Dollman
2024-08-06 16:46:25 -04:00
parent dcdee1d943
commit cdd10a3011
6 changed files with 99 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ type SystemStats struct {
MemUsed float64 `json:"mu"`
MemPct float64 `json:"mp"`
MemBuffCache float64 `json:"mb"`
Swap float64 `json:"s"`
SwapUsed float64 `json:"su"`
Disk float64 `json:"d"`
DiskUsed float64 `json:"du"`
DiskPct float64 `json:"dp"`