mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00

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).
11 lines
175 B
C
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
|