diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2021-07-15 22:03:54 -0400 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2021-07-15 22:03:54 -0400 |
commit | 847027182b79654fb8e734e45df3a4bea414a0ed (patch) | |
tree | d5cb6eee29dee0b16f919e1d0b0d01c8bc01daa0 /src | |
parent | 741054e84aa93d1343e19bbe754a01e6ca619c65 (diff) |
bug: move linux mem used to kilobytes too as workaround
Diffstat (limited to 'src')
-rw-r--r-- | src/app/data_harvester/memory/heim.rs | 3 |
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")] |