From nobody Wed Aug 07 20:54:49 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WfMqs61CXz5SsmS for ; Wed, 07 Aug 2024 20:54:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WfMqs4xqmz4fyF for ; Wed, 7 Aug 2024 20:54:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723064089; a=rsa-sha256; cv=none; b=g75i/lyG1CH9w/WtFdLakr0XYvtSbEP9sUc9ybL1ocXDeG0Owqou/P5Zd+Rm2OufApwnKU 7H5FZX3C3cOSwHf8znW19kSPN0LeF2pAMU9xNmFSg6nEZYczMeywb2SRkt3WdDqTNY8TOx H01xQVUZrSABrCFIum53rtAuZ4YSJpiOABJshVDXE8b+IkcNXXrZovIiKQIVoMDdDYsZ3r sM3tDuw+l8EM40nwnc9pjJCgJIXV1PLgFJHXEGH1YwQ7GbwEQbE1jsqnQfstbrLHa5CCI2 s5Ha3XrS2pLa74+A7NT1oZGdJ8DSb7NaKMiaarnUXkAR9tp6ocOpMOsktoBVcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723064089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tZZPf0qmJIHrKtiJgZYgDbzykoT3h8x4RnfEUahcz+M=; b=qYwNZ0naEcSCBaYS6dk0opkVrrGyhYB38jZUmOfQ0WzU/L85Kz3PifqyKB8mBRmA3SYdl2 vpyCW7TnrD5m5ydD6Dtuh0bO8yQVzXATTyz0M91buDsaFkwPX1o57i6rbYc4LwDLdsXt8C Iwc916g7qy8Kn9RUpr6/2w/B4pKWM2lxjc+7DoRPQRxO2aR0g1eoGXKmNEW31yF6UKL5yZ SsRZ1iQQEycVD6rc39zwaci8NG2shg8AHUYnSErJjrd478M4LcgfJRAYMVX36JXpNMSZih qY4qxG0jOP9vYLthjeuAnsQdZKm21sx/9klzYpyuVnYB+1Moe6qq+jrr8ELX6Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WfMqs4Ylxz14yq for ; Wed, 7 Aug 2024 20:54:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 477Ksnx6038024 for ; Wed, 7 Aug 2024 20:54:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 477Ksnj0038022 for ports-bugs@FreeBSD.org; Wed, 7 Aug 2024 20:54:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 280600] sysutils/htop CPU usage meters reporting wildly inaccurate CPU usage Date: Wed, 07 Aug 2024 20:54:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bsd@orsolic.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280600 bsd_orsolic changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bsd@orsolic.org --- Comment #1 from bsd_orsolic --- 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.=