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};
|
use tokio::time::{interval, sleep, Instant};
|
||||||
|
|
||||||
// Windows specific imports
|
// Windows specific imports
|
||||||
use systemstat::{Platform, System as SysStat};
|
|
||||||
|
|
||||||
// Data structures matching the C# DTOs
|
// Data structures matching the C# DTOs
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
@@ -441,6 +440,7 @@ fn get_cpu_temp() -> Option<f32> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
|
use systemstat::{Platform, System as SysStat};
|
||||||
{
|
{
|
||||||
let sys = SysStat::new();
|
let sys = SysStat::new();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user