mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 04:04:35 +03:00
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).
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user