diff options
Diffstat (limited to 'pcp/Platform.c')
-rw-r--r-- | pcp/Platform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcp/Platform.c b/pcp/Platform.c index d1bd0bc4..994cef3c 100644 --- a/pcp/Platform.c +++ b/pcp/Platform.c @@ -548,8 +548,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) { |