diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2016-05-16 19:19:36 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2016-05-16 19:19:36 -0300 |
commit | 95d1984339aa94aea64c217bf18dbc101bd8bc31 (patch) | |
tree | 5838f2f9ad1dbb3df9b33510c098dec84429e0ea | |
parent | 7d72715a6bb556882f8f9afbf9d9d8fb03350c1d (diff) | |
parent | 5776cb56b480df564e84ca457f347aea4e2d56fb (diff) |
Merge pull request #485 from Cubox-/master
Fix FreeBSD CPU bars calculation
-rw-r--r-- | freebsd/Platform.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/freebsd/Platform.c b/freebsd/Platform.c index 4185a8b5..f02daa5a 100644 --- a/freebsd/Platform.c +++ b/freebsd/Platform.c @@ -163,15 +163,15 @@ double Platform_setCPUValues(Meter* this, int cpu) { double percent; double* v = this->values; - v[CPU_METER_NICE] = cpuData->nicePercent * cpus; - v[CPU_METER_NORMAL] = cpuData->userPercent * cpus; + v[CPU_METER_NICE] = cpuData->nicePercent; + v[CPU_METER_NORMAL] = cpuData->userPercent; if (this->pl->settings->detailedCPUTime) { - v[CPU_METER_KERNEL] = cpuData->systemPercent * cpus; - v[CPU_METER_IRQ] = cpuData->irqPercent * cpus; + v[CPU_METER_KERNEL] = cpuData->systemPercent; + v[CPU_METER_IRQ] = cpuData->irqPercent; Meter_setItems(this, 4); percent = v[0]+v[1]+v[2]+v[3]; } else { - v[2] = cpuData->systemAllPercent * cpus; + v[2] = cpuData->systemAllPercent; Meter_setItems(this, 3); percent = v[0]+v[1]+v[2]; } |