diff --git a/Cargo.lock b/Cargo.lock index 98a4eae..21a98bc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,7 +270,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.54" +version = "0.1.55" dependencies = [ "anyhow", "chrono", @@ -292,7 +292,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.54" +version = "0.1.55" dependencies = [ "anyhow", "async-trait", @@ -315,7 +315,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.54" +version = "0.1.55" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 6a0c606..0b634ed 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.54" +version = "0.1.55" edition = "2021" [dependencies] diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index ed5f488..5853a2e 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.54" +version = "0.1.55" edition = "2021" [dependencies] diff --git a/dashboard/src/ui/mod.rs b/dashboard/src/ui/mod.rs index ef9b831..4fd89f5 100644 --- a/dashboard/src/ui/mod.rs +++ b/dashboard/src/ui/mod.rs @@ -637,11 +637,14 @@ impl TuiApp { return; } - // Calculate worst-case status across all hosts + // Calculate worst-case status across all hosts (excluding offline) let mut worst_status = Status::Ok; for host in &self.available_hosts { let host_status = self.calculate_host_status(host, metric_store); - worst_status = Status::aggregate(&[worst_status, host_status]); + // Don't include offline hosts in status aggregation + if host_status != Status::Offline { + worst_status = Status::aggregate(&[worst_status, host_status]); + } } // Use the worst status color as background diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 2e39527..2a3f2fc 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.54" +version = "0.1.55" edition = "2021" [dependencies]