summaryrefslogtreecommitdiffstats
path: root/solaris
diff options
context:
space:
mode:
Diffstat (limited to 'solaris')
-rw-r--r--solaris/Platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/solaris/Platform.c b/solaris/Platform.c
index 4a5daee6..5f737342 100644
--- a/solaris/Platform.c
+++ b/solaris/Platform.c
@@ -185,11 +185,11 @@ double Platform_setCPUValues(Meter* this, int cpu) {
if (this->pl->settings->detailedCPUTime) {
v[CPU_METER_KERNEL] = cpuData->systemPercent;
v[CPU_METER_IRQ] = cpuData->irqPercent;
- Meter_setItems(this, 4);
+ this->curItems = 4;
percent = v[0]+v[1]+v[2]+v[3];
} else {
v[2] = cpuData->systemAllPercent;
- Meter_setItems(this, 3);
+ this->curItems = 3;
percent = v[0]+v[1]+v[2];
}