Testing
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user