From 3c7fe273989626b299eb78d3ad1acb88ed64db64 Mon Sep 17 00:00:00 2001 From: Pero Orsolic Date: Wed, 7 Aug 2024 23:41:15 +0200 Subject: [PATCH] Fix display of CPU utilization on FreeBSD --- freebsd/Platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freebsd/Platform.c b/freebsd/Platform.c index 9be7195e5..153374b84 100644 --- a/freebsd/Platform.c +++ b/freebsd/Platform.c @@ -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]; }