moving imports trough die gegend
This commit is contained in:
@@ -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<f32> {
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
use systemstat::{Platform, System as SysStat};
|
||||
{
|
||||
let sys = SysStat::new();
|
||||
|
||||
|
Reference in New Issue
Block a user