projects
/
valheim_web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the correct process name...
[valheim_web.git]
/
backend
/
src
/
main.rs
diff --git
a/backend/src/main.rs
b/backend/src/main.rs
index
88424da
..
ce9ae9f
100644
(file)
--- a/
backend/src/main.rs
+++ b/
backend/src/main.rs
@@
-21,7
+21,7
@@
mod valheim_controller;
struct MainTemplate {
text_status: String,
memory: String,
struct MainTemplate {
text_status: String,
memory: String,
-
cpu
: String,
+
load_average
: String,
uptime: String
}
uptime: String
}
@@
-41,12
+41,12
@@
async fn main_page(/*key_shared: web::Data<Mutex<String>>,*/ query: Query<Reques
MainTemplate {
text_status: String::from("Valheim server is up and running :)"),
memory: info.format_memory(),
MainTemplate {
text_status: String::from("Valheim server is up and running :)"),
memory: info.format_memory(),
-
cpu: info.format_cpu_us
age(),
+
load_average: info.format_load_aver
age(),
uptime: info.format_uptime()
},
None => {
let value_unknown = String::from(VALUE_UNKNOWN);
uptime: info.format_uptime()
},
None => {
let value_unknown = String::from(VALUE_UNKNOWN);
- MainTemplate { text_status: String::from("Valheim server is down :("), memory: value_unknown.clone(),
cpu
: value_unknown.clone(), uptime: value_unknown.clone() }
+ MainTemplate { text_status: String::from("Valheim server is down :("), memory: value_unknown.clone(),
load_average
: value_unknown.clone(), uptime: value_unknown.clone() }
}
}
}
}