projects
/
valheim_web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7604416
)
Display load average in percent
author
Greg Burri
<greg.burri@gmail.com>
Wed, 10 Mar 2021 15:28:33 +0000
(16:28 +0100)
committer
Greg Burri
<greg.burri@gmail.com>
Wed, 10 Mar 2021 15:28:33 +0000
(16:28 +0100)
backend/src/valheim_controller.rs
patch
|
blob
|
history
diff --git
a/backend/src/valheim_controller.rs
b/backend/src/valheim_controller.rs
index
f10a2b2
..
f36307c
100644
(file)
--- a/
backend/src/valheim_controller.rs
+++ b/
backend/src/valheim_controller.rs
@@
-55,7
+55,7
@@
pub fn get_valheim_executable_information() -> Option<ValheimExe> {
Some(
\r
ValheimExe {
\r
memory: process.memory(),
\r
- load_average_5min: system.get_load_average().five,
\r
+ load_average_5min: system.get_load_average().five
/ system.get_processors().len() as f64 * 100.
,
\r
uptime: std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap().as_secs() - process.start_time()
\r
}
\r
)
\r