Show archive count range to detect inconsistencies

- Display single number if all services have same count
- Display min-max range if counts differ (indicates problem)
This commit is contained in:
2025-11-29 17:59:24 +01:00
parent 1c1beddb55
commit 40f3ff66d8
4 changed files with 21 additions and 8 deletions

View File

@@ -566,9 +566,15 @@ impl SystemWidget {
}
// Show usage with status and archive count
let archive_display = if disk.archives_min == disk.archives_max {
format!("{}", disk.archives_min)
} else {
format!("{}-{}", disk.archives_min, disk.archives_max)
};
let usage_text = format!(
"Usage: ({}) {:.0}% {:.0}GB/{:.0}GB",
disk.total_archives,
archive_display,
disk.disk_usage_percent,
disk.disk_used_gb,
disk.disk_total_gb