shirou / gopsutil

psutil for golang
Other
10.53k stars 1.58k forks source link

Inaccurate readings of cpu.Percent #1623

Open ax4w opened 5 months ago

ax4w commented 5 months ago

When running a stress test, which causes 100% CPU-Usage (read from the TaskManager) the cpu.Percent(0,false) call returns a much lower value with a 5-10% difference.

I am running Windows 10 Ver 10.0.19045.4170.

Before that update the values read from the task manager and the function call were equal.

Dylan-M commented 3 months ago

Before that update the values read from the task manager and the function call were equal.

What is "that" update? You didn't reference an update anywhere.