diff --git a/Cargo.lock b/Cargo.lock index 0468758..6ac63f3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -279,7 +279,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.252" +version = "0.1.253" dependencies = [ "anyhow", "chrono", @@ -301,7 +301,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.252" +version = "0.1.253" dependencies = [ "anyhow", "async-trait", @@ -325,7 +325,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.252" +version = "0.1.253" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 7e35fcd..5c57254 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.253" +version = "0.1.254" edition = "2021" [dependencies] diff --git a/agent/src/collectors/cpu.rs b/agent/src/collectors/cpu.rs index a1d1ae6..850f62c 100644 --- a/agent/src/collectors/cpu.rs +++ b/agent/src/collectors/cpu.rs @@ -282,8 +282,8 @@ impl Collector for CpuCollector { ); } - // Calculate status using thresholds - agent_data.system.cpu.load_status = self.calculate_load_status(agent_data.system.cpu.load_1min); + // Calculate status using thresholds (use 5-minute average for stability) + agent_data.system.cpu.load_status = self.calculate_load_status(agent_data.system.cpu.load_5min); agent_data.system.cpu.temperature_status = if let Some(temp) = agent_data.system.cpu.temperature_celsius { self.calculate_temperature_status(temp) } else { diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index 912f0cc..47a759e 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.253" +version = "0.1.254" edition = "2021" [dependencies] diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 39d833a..16bf704 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.253" +version = "0.1.254" edition = "2021" [dependencies]