Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Aug 2024 20:54:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 280600] sysutils/htop CPU usage meters reporting wildly inaccurate CPU usage
Message-ID:  <bug-280600-7788-ktBpPQIjZF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-280600-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-280600-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280600

bsd_orsolic <bsd@orsolic.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bsd@orsolic.org

--- Comment #1 from bsd_orsolic <bsd@orsolic.org> ---
It seems that error is introduced with commit
c803ec6dae5556fa35d6bd8124aa536633887f77

Small diff will fix it:
--- a/freebsd/Platform.c
+++ b/freebsd/Platform.c
@@ -210,7 +210,7 @@ double Platform_setCPUValues(Meter* this, unsigned int =
cpu)
{
       this->curItems =3D 4;
       percent =3D v[CPU_METER_NICE] + v[CPU_METER_NORMAL] + v[CPU_METER_KE=
RNEL]
+ v[CPU_METER_IRQ];
    } else {
-      v[CPU_METER_NORMAL] =3D cpuData->systemAllPercent;
+      v[CPU_METER_KERNEL] =3D cpuData->systemAllPercent;
       this->curItems =3D 3;
       percent =3D v[CPU_METER_NICE] + v[CPU_METER_NORMAL] + v[CPU_METER_KE=
RNEL];
    }

I'll report it to the upstream.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280600-7788-ktBpPQIjZF>