'unix' -> 'linux' (bis)
[valheim_web.git] / backend / src / valheim_controller.rs
index 04f75a4..ea502b0 100644 (file)
@@ -4,7 +4,7 @@ use std::{ fs, time::SystemTime };
 \r
 use chrono::{ DateTime, offset::Local };\r
 \r
-#[cfg(target_os = "unix")]\r
+#[cfg(target_os = "linux")]\r
 use systemd::journal;\r
 \r
 #[derive(Clone, Debug)]\r
@@ -72,7 +72,7 @@ fn format_byte_size(bytes: u64, precision: usize) -> String {
 \r
 const VALHEIM_PROCESS_NAME: &str = "valheim_server";\r
 \r
-#[cfg(target_os = "unix")]\r
+#[cfg(target_os = "linux")]\r
 fn get_number_of_players() -> u32 {\r
     let mut journal =\r
         journal::OpenOptions::default().current_user(true).open().unwrap();\r