X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=backend%2Fsrc%2Fmain.rs;h=ce9ae9f747c3b6a6d0c0505871ee24778bc6145b;hb=17b32f18e23bf3cd60f6cbcb24df6cc729d935c0;hp=88424da8aaee68b4b6d0a2662a088f0fbb4a5825;hpb=752356234981aff11c98cf77d9c504095dfa6fe2;p=valheim_web.git diff --git a/backend/src/main.rs b/backend/src/main.rs index 88424da..ce9ae9f 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -21,7 +21,7 @@ mod valheim_controller; struct MainTemplate { text_status: String, memory: String, - cpu: String, + load_average: String, uptime: String } @@ -41,12 +41,12 @@ 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() } } }