linux: fix ctime in linux.
This commit is contained in:
parent
feb4fc9706
commit
a22c0c27d9
|
@ -560,7 +560,7 @@ func (p *Process) fillFromStat() (string, int32, *cpu.CPUTimesStat, int64, int32
|
|||
if err != nil {
|
||||
return "", 0, nil, 0, 0, err
|
||||
}
|
||||
ctime := (t / uint64(ClockTicks)) + uint64(bootTime)
|
||||
ctime := (t / uint64(ClockTicks)) + uint64(bootTime)*1000
|
||||
createTime := int64(ctime)
|
||||
|
||||
// p.Nice = mustParseInt32(fields[18])
|
||||
|
|
Loading…
Reference in New Issue