diff options
author | Ivan Shapovalov <intelfx@intelfx.name> | 2023-03-12 20:17:03 +0400 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-04-23 16:00:17 +0200 |
commit | b2ada278403e643a3bc339783740f262b7879803 (patch) | |
tree | 081651d2cfa0c86d02c633cea81dcc40a233c825 /linux/Platform.c | |
parent | 1b640dff5759d73458204c87e217dab8759badd9 (diff) |
{Memory,Swap}Meter: make sure new constants are used consistently
Diffstat (limited to 'linux/Platform.c')
-rw-r--r-- | linux/Platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/Platform.c b/linux/Platform.c index e004b9b1..c14736bb 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -376,8 +376,8 @@ void Platform_setMemoryValues(Meter* this) { void Platform_setSwapValues(Meter* this) { const ProcessList* pl = this->pl; this->total = pl->totalSwap; - this->values[0] = pl->usedSwap; - this->values[1] = pl->cachedSwap; + this->values[SWAP_METER_USED] = pl->usedSwap; + this->values[SWAP_METER_CACHE] = pl->cachedSwap; } void Platform_setZramValues(Meter* this) { |