mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 17:59:28 +08:00
add swap usage chart
This commit is contained in:
@@ -73,6 +73,8 @@ func getSystemStats() (*SystemInfo, *SystemStats) {
|
||||
systemStats.MemUsed = bytesToGigabytes(v.Used)
|
||||
systemStats.MemBuffCache = bytesToGigabytes(v.Total - v.Free - v.Used)
|
||||
systemStats.MemPct = twoDecimals(v.UsedPercent)
|
||||
systemStats.Swap = bytesToGigabytes(v.SwapTotal)
|
||||
systemStats.SwapUsed = bytesToGigabytes(v.SwapTotal - v.SwapFree)
|
||||
}
|
||||
|
||||
// disk usage
|
||||
|
Reference in New Issue
Block a user