+ match valheim_controller::get_valheim_executable_information() {
+ Some(info) =>
+ MainTemplate {
+ text_status: String::from("Valheim server is up and running :)"),
+ memory: info.format_memory(),
+ load_average: info.format_load_average(),
+ uptime: info.format_uptime(),
+ world_size: info.format_world_size()
+ },
+ None => {
+ let value_unknown = String::from(VALUE_UNKNOWN);
+ 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() }
+ }
+ }
+
+ /*
+
+ let m =
+ if valheim_controller::is_valheim_running() { String::from("Valheim server is up and running") } else { String::from("Valheim server is down :(") };
+