-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b32997
commit 0cf3106
Showing
13 changed files
with
95 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#![allow(unused_imports)] // FIXME: Remove this | ||
|
||
use crate::{ | ||
app::{ | ||
data_harvester::disks::{DiskHarvest, IoHarvest}, | ||
filter::Filter, | ||
}, | ||
utils::error, | ||
}; | ||
|
||
cfg_if::cfg_if! { | ||
if #[cfg(target_os = "linux")] { | ||
mod linux; | ||
use linux::*; | ||
} else if #[cfg(not(target_os = "linux"))] { | ||
mod other; | ||
use other::*; | ||
} | ||
} | ||
|
||
pub fn get_io_usage() -> error::Result<IoHarvest> { | ||
Ok(IoHarvest::default()) | ||
} | ||
|
||
#[allow(dead_code)] | ||
#[allow(unused_variables)] | ||
pub fn get_disk_usage( | ||
disk_filter: &Option<Filter>, mount_filter: &Option<Filter>, | ||
) -> error::Result<Vec<DiskHarvest>> { | ||
Ok(vec![]) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use heim::disk::Partition; | ||
|
||
#[allow(dead_code)] | ||
fn get_device_name(partition: &Partition) -> String { | ||
if let Some(device) = partition.device() { | ||
device | ||
.to_os_string() | ||
.into_string() | ||
.unwrap_or_else(|_| "Name Unavailable".to_string()) | ||
} else { | ||
"Name Unavailable".to_string() | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters