Closed airtaxi closed 2 years ago
Good to reference: https://docs.microsoft.com/en-us/troubleshoot/windows-client/performance/cpu-usage-exceeds-100
The change made by @airtaxi in this PR will make the program use the value which reflects actual processor activity. I tested this in my forked repo and works great, so I recommend to merge this ;)
@airtaxi Do you complete to work in this pull request?
@airtaxi Do you complete to work in this pull request?
Yes! it's completed
I am not sure but I think it is great!
new PerformanceCounter("Processor Information", "% Processor Utility", "_Total");
is way too not accurate on my machine, instead I got a more precise result (nearly same as task manager) by this: https://stackoverflow.com/a/46737880/8883824
Applied new PerformanceCounter parameter that matches the CPU usage value of the Windows Task Manager.