summaryrefslogtreecommitdiffstats
path: root/src/app/data_harvester/memory/mod.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2021-07-17 21:25:05 -0400
committerGitHub <noreply@github.com>2021-07-17 21:25:05 -0400
commit7f24e6286735abcee6c3137dd9c22a7a178740a3 (patch)
tree0c47ab7f10e8f21018ef703f2e8f449bde222c0d /src/app/data_harvester/memory/mod.rs
parent4e07a28e172f0767edbb9d508f4fa9e2af7b25cd (diff)
bug: switch over to procfs for linux mem usage (#547)
Swap to manually calculating the mem total and usage via procfs. The usage calculation is now: total - (free + cached + buffers + slab_reclaimable - shmem) This follows the same usage calculation as htop. See the PR for more details.
Diffstat (limited to 'src/app/data_harvester/memory/mod.rs')
-rw-r--r--src/app/data_harvester/memory/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/data_harvester/memory/mod.rs b/src/app/data_harvester/memory/mod.rs
index 588a3c3b..25fccf59 100644
--- a/src/app/data_harvester/memory/mod.rs
+++ b/src/app/data_harvester/memory/mod.rs
@@ -4,7 +4,7 @@
cfg_if::cfg_if! {
if #[cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))] {
- pub mod heim;
- pub use self::heim::*;
+ pub mod general;
+ pub use self::general::*;
}
}