Skip to content

fix(cpu): use correct pdh counters depending on windows version#977

Open
amnweb wants to merge 1 commit into
mainfrom
fix/cpu-utility-counter
Open

fix(cpu): use correct pdh counters depending on windows version#977
amnweb wants to merge 1 commit into
mainfrom
fix/cpu-utility-counter

Conversation

@amnweb

@amnweb amnweb commented Jun 17, 2026

Copy link
Copy Markdown
Owner
  • use % Processor Time on Windows 11 24H2+ (build 26100+)
  • use % Processor Utility with fallback to % Processor Time on older Windows versions
  • apply build-dependent selection to both total and per-core counters

- use % Processor Time on Windows 11 24H2+ (build 26100+)
- use % Processor Utility with fallback to % Processor Time on older Windows versions
- apply build-dependent selection to both total and per-core counters
@amnweb

amnweb commented Jun 17, 2026

Copy link
Copy Markdown
Owner Author

I need more feedback.
This PR is related to issue #976 where Windows 10 reports wrong CPU usage.

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.

1 participant