1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00
This commit is contained in:
longXboy 2019-06-20 17:00:12 +08:00
parent 15fb800ae8
commit 5f0e0dca3e

View File

@ -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
}