Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jamartin9 committed Jul 6, 2023
1 parent e49ad09 commit fc79c2f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/app/data_farmer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ impl DataCollection {
} else {
device.name.split('/').last()
}
#[cfg(not(feature = "zfs"))]
device.name.split('/').last()
}
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/app/data_harvester/disks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ cfg_if! {
pub(crate) use self::windows::*;
} else if #[cfg(target_os = "linux")] {
mod unix;
#[cfg(feature = "zfs")]
mod zfs_io_counters;
pub(crate) use self::unix::*;
} else if #[cfg(target_os = "macos")] {
mod unix;
Expand Down Expand Up @@ -55,8 +57,6 @@ cfg_if! {
if #[cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))] {
mod io_counters;
pub use io_counters::IoCounters;
#[cfg(feature = "zfs")]
mod zfs_io_counters;

/// Returns the I/O usage of certain mount points.
pub fn get_io_usage() -> anyhow::Result<IoHarvest> {
Expand Down
1 change: 1 addition & 0 deletions src/app/data_harvester/disks/freebsd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ struct FileSystem {
}

pub fn get_io_usage() -> error::Result<IoHarvest> {
#[allow(unused_mut)]
let mut io_harvest: HashMap<String, Option<IoData>> =
get_disk_info().map(|storage_system_information| {
storage_system_information
Expand Down
2 changes: 2 additions & 0 deletions src/app/data_harvester/disks/io_counters.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
use std::ffi::OsStr;

#[allow(dead_code)]
#[derive(Debug, Default)]
pub struct IoCounters {
name: String,
read_bytes: u64,
write_bytes: u64,
}

#[allow(dead_code)]
impl IoCounters {
pub fn new(name: String, read_bytes: u64, write_bytes: u64) -> Self {
Self {
Expand Down

0 comments on commit fc79c2f

Please sign in to comment.