gopsutil icon indicating copy to clipboard operation
gopsutil copied to clipboard

[process] optimize the process.Percent function

Open Percivalll opened this issue 1 year ago • 0 comments

In fact, calculate process's cpu percent doesn't need host's cpu num. This commit may be helpful for performance, although runtime. NumCPU just reads a variable.

Percivalll avatar May 11 '23 07:05 Percivalll