Ben Aldrich
a76195e088
fixed imports and spelling error
2016-06-01 15:53:54 -06:00
Ben Aldrich
c36f7ac8b0
rename var
2016-06-01 15:45:29 -06:00
Ben Aldrich
fcc1747d9f
Merge branch 'master' of https://github.com/shirou/gopsutil into calc_cpu_percent
...
Conflicts:
cpu/cpu.go
2016-06-01 15:24:23 -06:00
Ben Aldrich
c389989453
calculate cpu percentage compared to last call if 0 interval is given
2016-06-01 15:21:58 -06:00
Shirou WAKAYAMA
57f6aebc7e
add Timeout to invoke command and use common.Invoke refs: #201
2016-05-20 17:59:41 +09:00
Shirou WAKAYAMA
4bb84648bf
JSON representation is renamed to fit Google JSON style, camelCase.
2016-03-23 10:52:46 +09:00
Shirou WAKAYAMA
ea152ea901
[BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters
2016-03-22 23:09:12 +09:00
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 039b9defab
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