summaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-11-21 15:31:19 -0500
committerClementTsang <cjhtsang@uwaterloo.ca>2020-11-22 02:33:48 -0500
commit2d127f198ec7ee0032f4435898c1268dcd09b735 (patch)
tree077a19d40000b4b46cc20cdc48db65477935ad91 /src/app
parente8238daa641c26651c20f06baeb2bd44690f2f68 (diff)
ci: uptick to 0.5.1, fix ci
Diffstat (limited to 'src/app')
-rw-r--r--src/app/data_harvester/disks.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/app/data_harvester/disks.rs b/src/app/data_harvester/disks.rs
index 2da7c3ad..59e9d13c 100644
--- a/src/app/data_harvester/disks.rs
+++ b/src/app/data_harvester/disks.rs
@@ -1,3 +1,6 @@
+#[cfg(not(any(target_arch = "aarch64", target_arch = "arm")))]
+use futures::stream::StreamExt;
+
#[derive(Debug, Clone, Default)]
pub struct DiskHarvest {
pub name: String,
@@ -61,8 +64,6 @@ pub async fn arm_disk_usage(
pub async fn non_arm_io_usage(
get_physical: bool, actually_get: bool,
) -> crate::utils::error::Result<Option<IOHarvest>> {
- use futures::stream::StreamExt;
-
if !actually_get {
return Ok(None);
}
@@ -106,8 +107,6 @@ pub async fn non_arm_io_usage(
pub async fn non_arm_disk_usage(
actually_get: bool,
) -> crate::utils::error::Result<Option<Vec<DiskHarvest>>> {
- use futures::stream::StreamExt;
-
if !actually_get {
return Ok(None);
}