v0.15.3: Show all storage paths on dashboard/monitoring + fix hub report

This commit is contained in:
2026-02-19 09:06:59 +01:00
parent 426eaca04d
commit 215ba8a83d
6 changed files with 60 additions and 15 deletions
+12 -7
View File
@@ -58,16 +58,21 @@ func BuildReport(
LoadAvg15: sysInfo.LoadAvg15,
}
// Storage
// Storage — root filesystem + all registered storage paths
r.Storage = []StorageReport{
{Mount: "/", TotalGB: sysInfo.DiskTotalGB, UsedGB: sysInfo.DiskUsedGB, Percent: sysInfo.DiskPercent},
{Mount: "/", Label: "SSD", TotalGB: sysInfo.DiskTotalGB, UsedGB: sysInfo.DiskUsedGB, Percent: sysInfo.DiskPercent},
}
if sysInfo.HDDConfigured {
for _, sp := range storagePaths {
di := system.GetDiskUsage(sp.Path)
if di == nil {
continue
}
r.Storage = append(r.Storage, StorageReport{
Mount: cfg.Paths.HDDPath,
TotalGB: sysInfo.HDDTotalGB,
UsedGB: sysInfo.HDDUsedGB,
Percent: sysInfo.HDDPercent,
Mount: sp.Path,
Label: sp.Label,
TotalGB: di.TotalGB,
UsedGB: di.UsedGB,
Percent: di.UsedPercent,
})
}