Date: Tue, 12 Jul 2011 14:28:13 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r223956 - stable/7/usr.bin/top Message-ID: <201107121428.p6CESDOF042697@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Tue Jul 12 14:28:13 2011 New Revision: 223956 URL: http://svn.freebsd.org/changeset/base/223956 Log: MFC 182966: Display the sum of the runtime of all the threads in a process when it's multithreaded instead of picking the time of the first thread found. Modified: stable/7/usr.bin/top/machine.c Directory Properties: stable/7/usr.bin/top/ (props changed) Modified: stable/7/usr.bin/top/machine.c ============================================================================== --- stable/7/usr.bin/top/machine.c Tue Jul 12 14:18:54 2011 (r223955) +++ stable/7/usr.bin/top/machine.c Tue Jul 12 14:28:13 2011 (r223956) @@ -726,6 +726,7 @@ get_process_info(struct system_info *si, prev_pp = pp; } else { prev_pp->ki_pctcpu += pp->ki_pctcpu; + prev_pp->ki_runtime += pp->ki_runtime; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107121428.p6CESDOF042697>