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/ZramStats.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/ZramStats.h')
-rw-r--r-- | linux/ZramStats.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/ZramStats.h b/linux/ZramStats.h index 2305cfd2..67aadcc5 100644 --- a/linux/ZramStats.h +++ b/linux/ZramStats.h @@ -2,9 +2,9 @@ #define HEADER_ZramStats typedef struct ZramStats_ { - unsigned long long int totalZram; - unsigned long long int usedZramComp; - unsigned long long int usedZramOrig; + memory_t totalZram; + memory_t usedZramComp; + memory_t usedZramOrig; } ZramStats; #endif |