diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-04-03 20:30:20 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-04-11 23:09:10 +0200 |
commit | 467bb78bb1cedc1709216ef38424ecb3928263ea (patch) | |
tree | d2e6f731a8ed0b9560fe8664b1c8e4d9820fefe6 /linux/Platform.c | |
parent | ccf745ee7ea017230827ad0c5332d1e14fa3ee10 (diff) |
ZramMeter: update bar mode
Show both compressed and uncompressed bars.
Closes: #1216
Diffstat (limited to 'linux/Platform.c')
-rw-r--r-- | linux/Platform.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/Platform.c b/linux/Platform.c index 0ab2be4f..e004b9b1 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -5,6 +5,7 @@ Released under the GNU GPLv2+, see the COPYING file in the source distribution for its full text. */ +#include "ZramMeter.h" #include "config.h" #include "linux/Platform.h" @@ -382,8 +383,8 @@ void Platform_setSwapValues(Meter* this) { void Platform_setZramValues(Meter* this) { const LinuxProcessList* lpl = (const LinuxProcessList*) this->pl; this->total = lpl->zram.totalZram; - this->values[0] = lpl->zram.usedZramComp; - this->values[1] = lpl->zram.usedZramOrig; + this->values[ZRAM_METER_COMPRESSED] = lpl->zram.usedZramComp; + this->values[ZRAM_METER_UNCOMPRESSED] = lpl->zram.usedZramOrig; } void Platform_setZfsArcValues(Meter* this) { |