Skip to content

Commit 41af8bb

Browse files
committed
fix: free disk monitor compile failed on windows
1 parent 7a9f759 commit 41af8bb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

agent/src/monitor.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,13 @@ use sysinfo::NetworkExt;
3030
use sysinfo::{get_current_pid, Pid, ProcessExt, ProcessRefreshKind, System, SystemExt};
3131

3232
#[cfg(target_os = "linux")]
33-
use crate::utils::{
34-
cgroups,
35-
environment::{get_disk_usage, SocketInfo},
36-
};
33+
use crate::utils::{cgroups, environment::SocketInfo};
34+
3735
use crate::{
3836
config::handler::EnvironmentAccess,
3937
error::{Error, Result},
4038
utils::{
39+
environment::get_disk_usage,
4140
process::{get_current_sys_memory_percentage, get_file_and_size_sum},
4241
stats::{
4342
self, Collector, Countable, Counter, CounterType, CounterValue, RefCountable,

0 commit comments

Comments
 (0)