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:
58d9f48
)
Uptime a bit more readable
author
Greg Burri
<greg.burri@gmail.com>
Thu, 18 Mar 2021 09:58:16 +0000
(10:58 +0100)
committer
Greg Burri
<greg.burri@gmail.com>
Thu, 18 Mar 2021 09:58:16 +0000
(10:58 +0100)
backend/src/valheim_controller.rs
patch
|
blob
|
history
diff --git
a/backend/src/valheim_controller.rs
b/backend/src/valheim_controller.rs
index
72eb60e
..
f11f7f4
100644
(file)
--- a/
backend/src/valheim_controller.rs
+++ b/
backend/src/valheim_controller.rs
@@
-30,7
+30,7
@@
impl ValheimExe {
let mins = self.uptime / 60;
\r
let hours = mins / 60;
\r
let days = hours / 24;
\r
- format!("{}d
{}h
{}min", days, hours - 24 * days, mins - 60 * hours)
\r
+ format!("{}d
{}h
{}min", days, hours - 24 * days, mins - 60 * hours)
\r
}
\r
\r
pub fn format_world_size(&self) -> String {
\r