mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 13:45:12 +02:00
bug: move linux mem used to kilobytes too as workaround
This commit is contained in:
parent
741054e84a
commit
847027182b
@ -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")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user