Show archive count per service instead of total sum

This commit is contained in:
2025-11-29 17:51:01 +01:00
parent a0d571a40e
commit 620d1f10b6
2 changed files with 6 additions and 5 deletions

View File

@@ -142,10 +142,11 @@ impl BackupCollector {
// Build service list for this disk
let services: Vec<String> = backup_status.services.keys().cloned().collect();
// Calculate total archives across all services on this disk
// Get archive count per service (use minimum to show if any service has fewer backups)
let total_archives: i64 = backup_status.services.values()
.map(|service| service.archive_count)
.sum();
.min()
.unwrap_or(0);
// Create disk data
let disk_data = BackupDiskData {