From 184720b8ec54231f178ce76d83cd72d2a2b206b7 Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Wed, 10 Mar 2021 16:28:33 +0100 Subject: [PATCH] Display load average in percent --- backend/src/valheim_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } ) -- 2.45.2