Date: Sat, 27 Feb 2010 12:15:59 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r204410 - head/sys/kern Message-ID: <201002271215.o1RCFxGg056229@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Sat Feb 27 12:15:59 2010 New Revision: 204410 URL: http://svn.freebsd.org/changeset/base/204410 Log: Include terminated threads in ps's process cpu time field. MFC after: 2 weeks Modified: head/sys/kern/kern_proc.c Modified: head/sys/kern/kern_proc.c ============================================================================== --- head/sys/kern/kern_proc.c Sat Feb 27 10:55:43 2010 (r204409) +++ head/sys/kern/kern_proc.c Sat Feb 27 12:15:59 2010 (r204410) @@ -676,11 +676,9 @@ fill_kinfo_aggregate(struct proc *p, str kp->ki_estcpu = 0; kp->ki_pctcpu = 0; - kp->ki_runtime = 0; FOREACH_THREAD_IN_PROC(p, td) { thread_lock(td); kp->ki_pctcpu += sched_pctcpu(td); - kp->ki_runtime += cputick2usec(td->td_runtime); kp->ki_estcpu += td->td_estcpu; thread_unlock(td); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002271215.o1RCFxGg056229>