提交 1f5fdd1f 编写于 作者: S Shirou WAKAYAMA

process: user and system should be divide by ClockTicks directly.

上级 8db78af1
......@@ -550,8 +550,8 @@ func (p *Process) fillFromStat() (string, int32, *cpu.CPUTimesStat, int64, int32
cpuTimes := &cpu.CPUTimesStat{
CPU: "cpu",
User: float64(utime * (1000 / ClockTicks)),
System: float64(stime * (1000 / ClockTicks)),
User: float64(utime / ClockTicks),
System: float64(stime / ClockTicks),
}
bootTime, _ := host.BootTime()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册