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

Fix %CPU for Windows #1090

Merged

Conversation

splhack
Copy link
Contributor

@splhack splhack commented Feb 1, 2022

winps stores %CPU to stat["pcpu"] in a range of 0.0 to 1.0.
And 1.0 means that the all of the total CPU cores are 100% busy.

So it is supposed to be multiplied with the number of total CPU cores (x100) to align with the Linux implementation.
E.g. if the number of total cores is 8, needs to multiply by 800.

@DiegoTavares DiegoTavares merged commit 66edf55 into AcademySoftwareFoundation:master Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants