1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-05-02 22:17:08 +08:00

8 Commits

Author SHA1 Message Date
Johan Walles
ebaa641e63 Make a public function for computing total CPU time
This function used to be a private part of process.go.

Since I needed that functionality however I think it's better to make it public
than for me to copy it into my own code.

As a side effect of this change, I also fixed a bug in the function where Stolen
was not part of the sum. Having the function close to the CPUTimesStat
declaration will make problems like this less likely to re-occur in the future.
2016-02-10 17:53:39 +01:00
Ryan J. O'Neil
2434a327b9 Removing race condition in CPUPercent calculation. 2015-12-15 15:22:30 -05:00
WAKAYAMA Shirou
ead8393137 cpu: use wmic to get CPU usage on Windows. 2015-03-11 23:00:06 +09:00
Shirou WAKAYAMA
753ea1bb48 fix when converting CPUTimes to JSON, sometimes idel have exponent 2015-02-13 23:11:27 +09:00
Shirou WAKAYAMA
4b5bf22b88 change CPUTimes type from float32 to float64 to resolve precision issue. 2015-02-13 22:45:12 +09:00
Shirou WAKAYAMA
13cd195a7e change package name. 2014-12-30 22:09:05 +09:00
Shirou WAKAYAMA
16de570414 merge 039b9defabe2fba35c9d3a4dbf7edc3fad812227 2014-12-27 23:42:00 +09:00
Shirou WAKAYAMA
a4671fcc2a move subdirectories. refer to issue #24 2014-11-27 10:18:15 +09:00