linux: fix ctime in linux.

This commit is contained in:
Shirou WAKAYAMA 2015-07-23 11:38:47 +09:00
parent feb4fc9706
commit a22c0c27d9
1 changed files with 1 additions and 1 deletions

View File

@ -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])