summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2021-07-15 22:03:54 -0400
committerClementTsang <cjhtsang@uwaterloo.ca>2021-07-15 22:03:54 -0400
commit847027182b79654fb8e734e45df3a4bea414a0ed (patch)
treed5cb6eee29dee0b16f919e1d0b0d01c8bc01daa0
parent741054e84aa93d1343e19bbe754a01e6ca619c65 (diff)
bug: move linux mem used to kilobytes too as workaround
-rw-r--r--src/app/data_harvester/memory/heim.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/data_harvester/memory/heim.rs b/src/app/data_harvester/memory/heim.rs
index 6e455510..e0d9c2c9 100644
--- a/src/app/data_harvester/memory/heim.rs
+++ b/src/app/data_harvester/memory/heim.rs
@@ -43,9 +43,10 @@ pub async fn get_ram_data() -> crate::utils::error::Result<Option<MemHarvest>> {
// even though it probably shouldn't...
use heim::memory::os::linux::MemoryExt;
+
(
memory.total().get::<heim::units::information::kilobyte>(),
- memory.used().get::<heim::units::information::kibibyte>(),
+ memory.used().get::<heim::units::information::kilobyte>(),
)
}
#[cfg(target_os = "macos")]