mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-25 15:25:45 +00:00
3d497a3760
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
|