Skip to content

Commit

Permalink
macOS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang committed Apr 9, 2023
1 parent 111133c commit a30aac1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/app/data_harvester/disks/unix/macos/counters.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Based on [heim's implementation](https://github.com/heim-rs/heim/blob/master/heim-disk/src/sys/macos/counters.rs).
use std::ffi::OsStr;

use super::io_kit::{self, get_dict, get_disks, get_i64, get_string};
use crate::app::data_harvester::disks::IoCounters;

Expand Down Expand Up @@ -42,11 +40,7 @@ fn get_device_io(device: io_kit::IoObject) -> anyhow::Result<IoCounters> {
// let read_count = stats.get_i64("Operations (Read)")? as u64;
// let write_count = stats.get_i64("Operations (Write)")? as u64;

Ok(IoCounters {
name,
read_bytes,
write_bytes,
})
Ok(IoCounters::new(name, read_bytes, write_bytes))
}

/// Returns an iterator of disk I/O stats. Pulls data through IOKit.
Expand Down

0 comments on commit a30aac1

Please sign in to comment.