diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-04 17:55:08 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-07 13:01:53 +0200 |
commit | 08d85e61435e43ade490ecef16437f93c0d88bed (patch) | |
tree | fd7357e4a53f7786b5001ef128ffa8e473570f00 /linux/Platform.c | |
parent | 164051354f11c0426e09e4fa09feeca7de92e619 (diff) |
Mark Object classes and Object class fields const
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 b0053bc0..6ec0d076 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -191,7 +191,7 @@ double Platform_setCPUValues(Meter* this, int cpu) { v[CPU_METER_STEAL] = cpuData->stealPeriod / total * 100.0; v[CPU_METER_GUEST] = cpuData->guestPeriod / total * 100.0; v[CPU_METER_IOWAIT] = cpuData->ioWaitPeriod / total * 100.0; - Meter_setItems(this, 8); + this->curItems = 8; if (this->pl->settings->accountGuestInCPUMeter) { percent = v[0]+v[1]+v[2]+v[3]+v[4]+v[5]+v[6]; } else { @@ -200,7 +200,7 @@ double Platform_setCPUValues(Meter* this, int cpu) { } else { v[2] = cpuData->systemAllPeriod / total * 100.0; v[3] = (cpuData->stealPeriod + cpuData->guestPeriod) / total * 100.0; - Meter_setItems(this, 4); + this->curItems = 4; percent = v[0]+v[1]+v[2]+v[3]; } percent = CLAMP(percent, 0.0, 100.0); |