summaryrefslogtreecommitdiffstats
path: root/devices/cpu_cpu.go
diff options
context:
space:
mode:
Diffstat (limited to 'devices/cpu_cpu.go')
-rw-r--r--devices/cpu_cpu.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/devices/cpu_cpu.go b/devices/cpu_cpu.go
index 0c1f9c1..9847572 100644
--- a/devices/cpu_cpu.go
+++ b/devices/cpu_cpu.go
@@ -6,10 +6,9 @@ import (
psCpu "github.com/shirou/gopsutil/cpu"
)
-// FIXME: broken % under Linux. Doesn't reflect reality *at all*.
func init() {
f := func(cpus map[string]int, l bool) map[string]error {
- cpuCount, err := psCpu.Counts(l)
+ cpuCount, err := CpuCount()
if err != nil {
return nil
}