diff options
author | sepotvin <sepotvin@FreeBSD.org> | 2008-09-12 17:54:50 +0000 |
---|---|---|
committer | sepotvin <sepotvin@FreeBSD.org> | 2008-09-12 17:54:50 +0000 |
commit | a3a31596e0ecccbbb9ed484df93d99838c32cbfe (patch) | |
tree | 33dd5de0585599adb205595e8c9d19f41694ee49 | |
parent | 6d5e175ceb85f51379f0ff7477ade6dc25e7e954 (diff) | |
download | FreeBSD-src-a3a31596e0ecccbbb9ed484df93d99838c32cbfe.zip FreeBSD-src-a3a31596e0ecccbbb9ed484df93d99838c32cbfe.tar.gz |
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
-rw-r--r-- | usr.bin/top/machine.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } |