the unit in /proc/<pid>/schedstat should be ns

This commit is contained in:
Nan Deng 2014-08-06 11:03:40 -07:00
parent 317f0b870d
commit 324874411d

View File

@ -27,13 +27,13 @@ type ProcessSchedStat struct {
// Number of processes // Number of processes
NumProcesses int NumProcesses int
// Total time spent on the cpu (Unit: jiffy) // Total time spent on the cpu (Unit: nanoseconds)
Running uint64 Running uint64
// Total time spent waiting on a runqueue (Unit: jiffy) // Total time spent waiting on a runqueue (Unit: nanoseconds)
RunWait uint64 RunWait uint64
// # of timeslices run on this cpu (Unit: jiffy) // # of timeslices run on this cpu. i.e. # of times run on the cpu
NumTimeSlices uint64 NumTimeSlices uint64
} }