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
1 changed files with 2 additions and 1 deletions

View File

@ -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")]