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;
                }
        }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to