bug: move linux mem used to kilobytes too as workaround

This commit is contained in:
ClementTsang 2021-07-15 22:03:54 -04:00
parent 741054e84a
commit 847027182b

View File

@ -43,9 +43,10 @@ pub async fn get_ram_data() -> crate::utils::error::Result<Option<MemHarvest>> {
// even though it probably shouldn't... // even though it probably shouldn't...
use heim::memory::os::linux::MemoryExt; use heim::memory::os::linux::MemoryExt;
( (
memory.total().get::<heim::units::information::kilobyte>(), 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")] #[cfg(target_os = "macos")]