From owner-svn-src-all@FreeBSD.ORG Tue Jul 12 14:28:14 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A6FD1065674; Tue, 12 Jul 2011 14:28:14 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1AC888FC20; Tue, 12 Jul 2011 14:28:14 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p6CESDNB042699; Tue, 12 Jul 2011 14:28:13 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p6CESDOF042697; Tue, 12 Jul 2011 14:28:13 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201107121428.p6CESDOF042697@svn.freebsd.org> From: John Baldwin Date: Tue, 12 Jul 2011 14:28:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r223956 - stable/7/usr.bin/top X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2011 14:28:14 -0000 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; } }