This commit is contained in:
2025-10-13 10:23:42 +02:00
parent 42aaebf6a7
commit bb69f0f31b
2 changed files with 39 additions and 88 deletions

View File

@@ -208,9 +208,9 @@ impl SystemCollector {
}
fn determine_cpu_status(&self, cpu_load_5: f32) -> String {
if cpu_load_5 >= 8.0 {
if cpu_load_5 >= 10.0 {
"critical".to_string()
} else if cpu_load_5 >= 5.0 {
} else if cpu_load_5 >= 9.0 {
"warning".to_string()
} else {
"ok".to_string()