Skip to content

Commit

Permalink
Fix display of CPU utilization on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
orsolic authored and BenBE committed Aug 15, 2024
1 parent 0782be7 commit 3c7fe27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freebsd/Platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ double Platform_setCPUValues(Meter* this, unsigned int cpu) {
this->curItems = 4;
percent = v[CPU_METER_NICE] + v[CPU_METER_NORMAL] + v[CPU_METER_KERNEL] + v[CPU_METER_IRQ];
} else {
v[CPU_METER_NORMAL] = cpuData->systemAllPercent;
v[CPU_METER_KERNEL] = cpuData->systemAllPercent;
this->curItems = 3;
percent = v[CPU_METER_NICE] + v[CPU_METER_NORMAL] + v[CPU_METER_KERNEL];
}
Expand Down

0 comments on commit 3c7fe27

Please sign in to comment.