From 324874411d0d4ad6f0b76fa46af8e53696fed866 Mon Sep 17 00:00:00 2001 From: Nan Deng Date: Wed, 6 Aug 2014 11:03:40 -0700 Subject: [PATCH] the unit in /proc//schedstat should be ns --- utils/procfs/schedstats.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/procfs/schedstats.go b/utils/procfs/schedstats.go index 560b0d43..495eefe5 100644 --- a/utils/procfs/schedstats.go +++ b/utils/procfs/schedstats.go @@ -27,13 +27,13 @@ type ProcessSchedStat struct { // Number of processes NumProcesses int - // Total time spent on the cpu (Unit: jiffy) + // Total time spent on the cpu (Unit: nanoseconds) Running uint64 - // Total time spent waiting on a runqueue (Unit: jiffy) + // Total time spent waiting on a runqueue (Unit: nanoseconds) 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 }