Index: sys/kern/kern_time.c =================================================================== --- sys/kern/kern_time.c (revision 335517) +++ sys/kern/kern_time.c (working copy) @@ -281,6 +281,10 @@ rufetch(targetp, &ru); runtime = targetp->p_rux.rux_runtime; PROC_STATUNLOCK(targetp); + critical_enter(); + if (curthread->td_proc == targetp) + runtime += cpu_ticks() - PCPU_GET(switchtime); + critical_exit(); cputick2timespec(runtime, ats); }