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:
c6b54f6
)
'memory' is now in bytes.
author
Greg Burri
<greg.burri@gmail.com>
Thu, 22 Sep 2022 12:07:49 +0000
(14:07 +0200)
committer
Greg Burri
<greg.burri@gmail.com>
Thu, 22 Sep 2022 12:07:49 +0000
(14:07 +0200)
backend/src/valheim_controller.rs
patch
|
blob
|
history
diff --git
a/backend/src/valheim_controller.rs
b/backend/src/valheim_controller.rs
index
aa0ff31
..
a7f10b5
100644
(file)
--- a/
backend/src/valheim_controller.rs
+++ b/
backend/src/valheim_controller.rs
@@
-8,7
+8,7
@@
use systemd::journal;
\r
#[derive(Clone, Debug)]
\r
pub struct ValheimExe {
\r
- memory: u64, // [
k
B].
\r
+ memory: u64, // [B].
\r
load_average_5min: f64, // [%].
\r
uptime: u64, // [s].
\r
world_size: u64, // [B].
\r
@@
-18,7
+18,7
@@
pub struct ValheimExe {
\r
impl ValheimExe {
\r
pub fn format_memory(&self) -> String {
\r
- format_byte_size(self.memory
* 1024
, 2)
\r
+ format_byte_size(self.memory, 2)
\r
}
\r
\r
pub fn format_load_average(&self) -> String {
\r