summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorsepotvin <sepotvin@FreeBSD.org>2008-09-12 17:54:50 +0000
committersepotvin <sepotvin@FreeBSD.org>2008-09-12 17:54:50 +0000
commita3a31596e0ecccbbb9ed484df93d99838c32cbfe (patch)
tree33dd5de0585599adb205595e8c9d19f41694ee49 /usr.bin
parent6d5e175ceb85f51379f0ff7477ade6dc25e7e954 (diff)
downloadFreeBSD-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
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/top/machine.c1
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;
}
}
OpenPOWER on IntegriCloud