htop/linux/ZramStats.h
Christian Göttsche 3d497a3760 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).
2021-02-07 12:41:52 +01:00

11 lines
175 B
C

#ifndef HEADER_ZramStats
#define HEADER_ZramStats
typedef struct ZramStats_ {
memory_t totalZram;
memory_t usedZramComp;
memory_t usedZramOrig;
} ZramStats;
#endif