Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: Correctly mark trailing offline CPU threads #1394

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

C0rn3j
Copy link
Contributor

@C0rn3j C0rn3j commented Jan 30, 2024

htop checks cpu IDs in /proc/stat, and marks any in-between IDs as missing.
This check was counting with leading offline threads(somewhat accidentally, as cpu0 is total in the code), but not trailing.

Left is 3.3.0, Right is 3.3.0 with this PR.
image

This supersedes #1342 which attempts to fix the same thing, but ignores thread IDs and just marks them active sequentially from 0.

It also fixes one of the two problems in #757 and the remaining issue is already tracked in #1198, so that can be closed after merge.

This was introduced in 41af31b#diff-7b4ee00635e2355bc3b83ada6e57991d2a79ba37828dab7128c461c14645580aR1865

@cgzones cgzones merged commit 240dd4a into htop-dev:main Mar 27, 2024
12 checks passed
@cgzones
Copy link
Member

cgzones commented Mar 27, 2024

Thanks, merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working Linux 🐧 Linux related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants