diff options
Diffstat (limited to 'devices/cpu_cpu.go')
-rw-r--r-- | devices/cpu_cpu.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/devices/cpu_cpu.go b/devices/cpu_cpu.go new file mode 100644 index 0000000..f5e6956 --- /dev/null +++ b/devices/cpu_cpu.go @@ -0,0 +1,10 @@ +package devices + +import ( + psCpu "github.com/shirou/gopsutil/cpu" +) + +func init() { + deviceCounts = append(deviceCounts, psCpu.Counts) + devicePercents = append(devicePercents, psCpu.Percent) +} |