From a3a31596e0ecccbbb9ed484df93d99838c32cbfe Mon Sep 17 00:00:00 2001 From: sepotvin Date: Fri, 12 Sep 2008 17:54:50 +0000 Subject: 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. Reviewed by: jhb Approved by: kan (mentor) MFC after: 1 month --- usr.bin/top/machine.c | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.bin/top') diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index fa2eb68..01d168f 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -725,6 +725,7 @@ get_process_info(struct system_info *si, struct process_select *sel, prev_pp = pp; } else { prev_pp->ki_pctcpu += pp->ki_pctcpu; + prev_pp->ki_runtime += pp->ki_runtime; } } -- cgit v1.1