From 5f0e0dca3e79df0bfa759fca8a357219cd3151c0 Mon Sep 17 00:00:00 2001 From: longXboy Date: Thu, 20 Jun 2019 17:00:12 +0800 Subject: [PATCH] fix --- pkg/stat/sys/cpu/psutilCPU.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stat/sys/cpu/psutilCPU.go b/pkg/stat/sys/cpu/psutilCPU.go index 8d64f8dcc..d0e548801 100644 --- a/pkg/stat/sys/cpu/psutilCPU.go +++ b/pkg/stat/sys/cpu/psutilCPU.go @@ -23,7 +23,7 @@ func (ps *psutilCPU) Usage() (u uint64, err error) { var percents []float64 percents, err = cpu.Percent(ps.interval, false) if err == nil { - u = uint64(percents[0] * 10) + u = uint64(percents[0] * 10000000) } return }