xmtop/devices/cpu_cpu.go
2020-02-25 14:04:55 -06:00

11 lines
192 B
Go

package devices
import (
psCpu "github.com/shirou/gopsutil/cpu"
)
func init() {
deviceCounts = append(deviceCounts, psCpu.Counts)
devicePercents = append(devicePercents, psCpu.Percent)
}