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

The CPU usage is displayed incorrectly on the icon #114

Open
justsonghua opened this issue Jan 6, 2023 · 5 comments
Open

The CPU usage is displayed incorrectly on the icon #114

justsonghua opened this issue Jan 6, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@justsonghua
Copy link

Describe the bug
The CPU usage shown on the taskbar icon is much lower than the usage in the task manager. When my computer is in standby, the task manager shows 15%-20% occupancy, but only 3%-5% is displayed on the icon. When I run the program and the CPU is nearly 100% fully loaded, the icon shows that the usage rate is 30%-40%. This bug exists in both version RunCat-x64 and version RunCat-with-dotnet6-x64.

Win11 22H2 with .Net 6.0.12

Screenshots
9c8d00d49177e2d40d88a1f4183acd5

@justsonghua justsonghua added the bug Something isn't working label Jan 6, 2023
@zylnature
Copy link

me too, Win11 22H2 22621.1105
This bug also occurred on v1.9

@Kyome22
Copy link
Owner

Kyome22 commented Jan 23, 2023

@justsonghua @zylnature
Maybe there is something wrong with the way to get CPU usage, but I don't know, I am not familiar with Windows or .NET.

Perhaps this line should be improved.

cpuUsage = new PerformanceCounter("Processor Information", "% Processor Utility", "_Total");

@vivadavid
Copy link

Hi,

I've noticed the same thing today. I'm on Windows 11 22H2 (build 22621.1265).

CPU_usage.mp4

@Zostana
Copy link

Zostana commented Dec 1, 2023

我的也是

@Kyome22
Copy link
Owner

Kyome22 commented Mar 1, 2024

#125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants