mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
fix
This commit is contained in:
parent
15fb800ae8
commit
5f0e0dca3e
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user