This commit is contained in:
Sean E. Russell 2020-05-06 20:00:13 -05:00
parent 292c4c1bf3
commit b0e1e9a20a

View File

@ -7,6 +7,8 @@ import (
psCpu "github.com/shirou/gopsutil/cpu"
)
// FIXME: broken % under Linux. Doesn't reflect reality *at all*.
// FIXME: gotop CPU use high -- gopsutils again? Try rolling back.
func init() {
f := func(cpus map[string]int, iv time.Duration, l bool) map[string]error {
cpuCount, err := psCpu.Counts(l)