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
This commit is contained in:
Stephane E. Potvin 2008-09-12 17:54:50 +00:00
parent 29e6fa3a7f
commit c975a48dee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182966

View File

@ -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;
}
}