diff --git a/WatcherAgent/src/main.rs b/WatcherAgent/src/main.rs index 4c813cf..309e070 100644 --- a/WatcherAgent/src/main.rs +++ b/WatcherAgent/src/main.rs @@ -10,7 +10,6 @@ use sysinfo::{Components, Disks, System}; use tokio::time::{interval, sleep, Instant}; // Windows specific imports -use systemstat::{Platform, System as SysStat}; // Data structures matching the C# DTOs #[derive(Serialize, Debug)] @@ -441,6 +440,7 @@ fn get_cpu_temp() -> Option { } #[cfg(target_os = "windows")] + use systemstat::{Platform, System as SysStat}; { let sys = SysStat::new();