mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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:
parent
29e6fa3a7f
commit
c975a48dee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182966
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user