From 847027182b79654fb8e734e45df3a4bea414a0ed Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Thu, 15 Jul 2021 22:03:54 -0400 Subject: bug: move linux mem used to kilobytes too as workaround --- src/app/data_harvester/memory/heim.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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> { // even though it probably shouldn't... use heim::memory::os::linux::MemoryExt; + ( memory.total().get::(), - memory.used().get::(), + memory.used().get::(), ) } #[cfg(target_os = "macos")] -- cgit v1.2.3