From: Greg Burri Date: Wed, 10 Mar 2021 15:28:33 +0000 (+0100) Subject: Display load average in percent X-Git-Url: https://git.euphorik.ch/?a=commitdiff_plain;h=184720b8ec54231f178ce76d83cd72d2a2b206b7;p=valheim_web.git Display load average in percent --- diff --git a/backend/src/valheim_controller.rs b/backend/src/valheim_controller.rs index f10a2b2..f36307c 100644 --- a/backend/src/valheim_controller.rs +++ b/backend/src/valheim_controller.rs @@ -55,7 +55,7 @@ pub fn get_valheim_executable_information() -> Option { Some( ValheimExe { memory: process.memory(), - load_average_5min: system.get_load_average().five, + load_average_5min: system.get_load_average().five / system.get_processors().len() as f64 * 100., uptime: std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap().as_secs() - process.start_time() } )