Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimryndin committed Feb 22, 2024
1 parent 3a13fd3 commit f56d9f6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/services/system/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ pub const SWAP_USE: &str = "swap_use";
pub const DISK_USE: &str = "disk_use";
pub const CPU: &str = "cpu";

#[cfg(not(target_os = "linux"))]
use sysinfo::DiskExt;

#[cfg(target_os = "linux")]
fn open_files(pid: Pid) -> Option<usize> {
let dir = format!("/proc/{pid}/fd");
Expand Down

0 comments on commit f56d9f6

Please sign in to comment.