-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Remove wmi for Get physical CPU core count #1839
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work, thanks a lot @OrbintSoft. Tested on my windows 10 laptop, compared to psutil.cpu_counts(logical=False)
and everything is fine.
Besides my other remarks, would you also mind squashing your commits?
for the commits you can do a squash and merge once you approve. |
LGTM besides my last nit in https://github.com/shirou/gopsutil/pull/1839/files#r2047042897, but it's kind of personal preference, so can be merged at will. Thanks again @OrbintSoft 🙏 |
Can we merge or do you need other changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for updating the PR, and sorry for the delay—I'll go ahead and merge it now. We truly appreciate your great contribution!
Reimplemented get physical core count with windows api, so we can get rid of wmi.