Commit Graph

16 Commits (1b9883dc7610e938324f4a79f15e348eb04dba1b)

Author SHA1 Message Date
Ryan J. O'Neil 1b9883dc76 Rebrandoning so we can patch this library and have it work in our Godeps.
Shirou WAKAYAMA 7288e9a5af common[all]: add internal
Ben Aldrich a4ec4177a6 Fix cpu percent on windows
Tested on windows 7:

When divided by 100 you get cpu percentage of  %0.14 when task manager shows %14. Once this is removed they match.
WAKAYAMA Shirou 4696985e84 cpu[windows]: skip if could not get cpu.LoadPercentage.
mayowa 6fa0704dbf fixed: ProcessorId doesnt return a value
mayowa 7889ce3e03 changed ProccessorId type to *string, cause wmi sometimes returns nil for it
mayowa 6a2bc5afe8 removed l2CacheSize as its not present in all wmi databases
WAKAYAMA shirou 64357f04e7 use StackExchange/wmi instead of invoking wmic process.
Note: This may not work on some old Windows XP.
WAKAYAMA Shirou 5f8b99aa65 windows: GetWmic returns [][]string where string split by ","
Shirou WAKAYAMA 170390c0df cpu: fix build option on unix.
WAKAYAMA Shirou ead8393137 cpu: use wmic to get CPU usage on Windows.
WAKAYAMA Shirou 4694ce0e4d cpu: use wmic to get CPUInfo on Windows
Shirou WAKAYAMA 4b5bf22b88 change CPUTimes type from float32 to float64 to resolve precision issue.
Shirou WAKAYAMA 13cd195a7e change package name.
WAKAYAMA Shirou 9f2c985a28 fix windows build.
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24