Show archive count per service instead of total sum
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user