diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-06 18:11:24 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-02-07 12:41:52 +0100 |
commit | 3d497a3760626d398fffc8f4594e8b9658f67d55 (patch) | |
tree | 31f5f760e5039d220606461929ac48f365aff269 /linux/LinuxProcessList.h | |
parent | 0d67263b36f0f1b45a2f10ec80c15766ca218ce5 (diff) |
Linux: overhaul memory partition
Use similar calculation than procps.
Show AvailableMemory in text mode.
Use total minus available memory instead of manually computed used-
memory as fraction part in bar mode (if available).
Diffstat (limited to 'linux/LinuxProcessList.h')
-rw-r--r-- | linux/LinuxProcessList.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/LinuxProcessList.h b/linux/LinuxProcessList.h index d65119e8..72661ce2 100644 --- a/linux/LinuxProcessList.h +++ b/linux/LinuxProcessList.h @@ -74,8 +74,10 @@ typedef struct LinuxProcessList_ { int netlink_family; #endif - unsigned long long int totalHugePageMem; - unsigned long long int usedHugePageMem[HTOP_HUGEPAGE_COUNT]; + memory_t totalHugePageMem; + memory_t usedHugePageMem[HTOP_HUGEPAGE_COUNT]; + + memory_t availableMem; ZfsArcStats zfs; ZramStats zram; |