X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=backend%2Fsrc%2Fmain.rs;h=f14592ead05ce4eb8f242cc399e9036911c4bfff;hb=ae59fd67818b8db8782222bd06c76a43213f0513;hp=88424da8aaee68b4b6d0a2662a088f0fbb4a5825;hpb=7ebb570a4a158743200d0f5e53ab44ee823516f0;p=valheim_web.git diff --git a/backend/src/main.rs b/backend/src/main.rs index 88424da..f14592e 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -21,8 +21,9 @@ mod valheim_controller; struct MainTemplate { text_status: String, memory: String, - cpu: String, - uptime: String + load_average: String, + uptime: String, + world_size: String } #[derive(Deserialize)] @@ -41,12 +42,13 @@ async fn main_page(/*key_shared: web::Data>,*/ query: Query { 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(), world_size: value_unknown.clone() } } }