pull/164/head
longXboy 5 years ago
parent 15fb800ae8
commit 5f0e0dca3e
  1. 2
      pkg/stat/sys/cpu/psutilCPU.go

@ -23,7 +23,7 @@ func (ps *psutilCPU) Usage() (u uint64, err error) {
var percents []float64 var percents []float64
percents, err = cpu.Percent(ps.interval, false) percents, err = cpu.Percent(ps.interval, false)
if err == nil { if err == nil {
u = uint64(percents[0] * 10) u = uint64(percents[0] * 10000000)
} }
return return
} }

Loading…
Cancel
Save