diff options
author | Nathan Scott <nathans@redhat.com> | 2023-11-21 08:38:27 +1100 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2023-11-21 08:38:27 +1100 |
commit | 2698483444d7d668e790c8e945ccb61a8c4e4df8 (patch) | |
tree | e13fc51ae788d0be414960ca08b0450fdc9a7e06 /pcp/PCPMachine.c | |
parent | 452244dc06270aff4872a3c3d9559e7da5f34ad6 (diff) |
Remove unused zswap pool size calculation from commit 71f5a80d9e
Quick discussion with Ivan confirmed this was a left-over from
an earlier version of the zswap code and can be safely removed.
Diffstat (limited to 'pcp/PCPMachine.c')
-rw-r--r-- | pcp/PCPMachine.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/pcp/PCPMachine.c b/pcp/PCPMachine.c index faf3ae96..2e872534 100644 --- a/pcp/PCPMachine.c +++ b/pcp/PCPMachine.c @@ -179,12 +179,9 @@ static void PCPMachine_updatePerCPUReal(PCPMachine* this, Metric metric, CPUMetr } static inline void PCPMachine_scanZswapInfo(PCPMachine* this) { - const Machine* host = &this->super; pmAtomValue value; memset(&this->zswap, 0, sizeof(ZswapStats)); - if (Metric_values(PCP_ZSWAP_MAX_POOL_PERCENT, &value, 1, PM_TYPE_U64)) - this->zswap.totalZswapPool = host->totalMem * value.ull / 100; if (Metric_values(PCP_MEM_ZSWAP, &value, 1, PM_TYPE_U64)) this->zswap.usedZswapComp = value.ull; if (Metric_values(PCP_MEM_ZSWAPPED, &value, 1, PM_TYPE_U64)) |