Compare commits

...

4 Commits

Author SHA1 Message Date
1c1beddb55 Bump version to v0.1.217
All checks were successful
Build and Release / build-and-release (push) Successful in 1m20s
2025-11-29 17:51:13 +01:00
620d1f10b6 Show archive count per service instead of total sum 2025-11-29 17:51:01 +01:00
a0d571a40e Bump version to v0.1.216
All checks were successful
Build and Release / build-and-release (push) Successful in 1m19s
2025-11-29 17:44:12 +01:00
977200fff3 Move archive count to Usage line in backup display 2025-11-29 17:44:05 +01:00
6 changed files with 12 additions and 13 deletions

6
Cargo.lock generated
View File

@@ -279,7 +279,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d"
[[package]]
name = "cm-dashboard"
version = "0.1.214"
version = "0.1.216"
dependencies = [
"anyhow",
"chrono",
@@ -301,7 +301,7 @@ dependencies = [
[[package]]
name = "cm-dashboard-agent"
version = "0.1.214"
version = "0.1.216"
dependencies = [
"anyhow",
"async-trait",
@@ -324,7 +324,7 @@ dependencies = [
[[package]]
name = "cm-dashboard-shared"
version = "0.1.214"
version = "0.1.216"
dependencies = [
"chrono",
"serde",

View File

@@ -1,6 +1,6 @@
[package]
name = "cm-dashboard-agent"
version = "0.1.215"
version = "0.1.217"
edition = "2021"
[dependencies]

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 {

View File

@@ -1,6 +1,6 @@
[package]
name = "cm-dashboard"
version = "0.1.215"
version = "0.1.217"
edition = "2021"
[dependencies]

View File

@@ -544,9 +544,6 @@ impl SystemWidget {
details.push(format!("W: {}%", wear as i32));
}
// Add archive count
details.push(format!("Archives: {}", disk.total_archives));
let disk_text = if !details.is_empty() {
format!("{} {}", truncated_serial, details.join(" "))
} else {
@@ -568,9 +565,10 @@ impl SystemWidget {
lines.push(Line::from(time_spans));
}
// Show usage with status
// Show usage with status and archive count
let usage_text = format!(
"Usage: {:.0}% {:.0}GB/{:.0}GB",
"Usage: ({}) {:.0}% {:.0}GB/{:.0}GB",
disk.total_archives,
disk.disk_usage_percent,
disk.disk_used_gb,
disk.disk_total_gb

View File

@@ -1,6 +1,6 @@
[package]
name = "cm-dashboard-shared"
version = "0.1.215"
version = "0.1.217"
edition = "2021"
[dependencies]