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

Fixes #1026 windows counters on non english systems #1027

Merged
merged 4 commits into from Feb 6, 2021

Conversation

jabdr
Copy link
Contributor

@jabdr jabdr commented Feb 1, 2021

Fixes #1026

@@ -72,6 +72,7 @@ var (

PdhOpenQuery = ModPdh.NewProc("PdhOpenQuery")
PdhAddCounter = ModPdh.NewProc("PdhAddCounterW")
PdhAddEnglishCounterW = ModPdh.NewProc("PdhAddEnglishCounterW")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you delete PdhAddCounter? Now it is unused.

@shirou
Copy link
Owner

shirou commented Feb 6, 2021

Sorry, could you make a commit to v2 also?

@jabdr
Copy link
Contributor Author

jabdr commented Feb 6, 2021

Done. I now rembered. The error message was just: "gopsutil: unexpected processor queue length counter error, please file an issue on github". This is why I've added the err to the log message.

@shirou
Copy link
Owner

shirou commented Feb 6, 2021

Sorry, one more. Could you delete PdhAddCounter ?

https://github.com/shirou/gopsutil/pull/1027/files#r571389523

@jabdr
Copy link
Contributor Author

jabdr commented Feb 6, 2021

Done

@shirou
Copy link
Owner

shirou commented Feb 6, 2021

Great! Thank you for your contribution!

@shirou shirou merged commit d765dfc into shirou:master Feb 6, 2021
This was referenced Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows Load only work with English system language
2 participants