summaryrefslogtreecommitdiff
path: root/usr.bin/top
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-02-14 13:34:59 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-02-14 13:34:59 +0000
commit373e363e343cb787b022f1e645844e98da96f025 (patch)
tree3d9d4d6dda55b5c3d9c548b44eeee038bb98a3ea /usr.bin/top
parent950fca26eda663cdeec32162b2e0a115dedaa7bb (diff)
downloadsrc-test2-373e363e343cb787b022f1e645844e98da96f025.tar.gz
src-test2-373e363e343cb787b022f1e645844e98da96f025.zip
Notes
Diffstat (limited to 'usr.bin/top')
-rw-r--r--usr.bin/top/machine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 82a419d2e93e..d715210ae4ce 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -17,7 +17,7 @@
* Steven Wallace <swallace@freebsd.org>
* Wolfram Schneider <wosch@FreeBSD.org>
*
- * $Id: machine.c,v 1.7 1997/09/28 00:59:04 peter Exp $
+ * $Id: machine.c,v 1.8 1997/10/05 21:20:56 fsmp Exp $
*/
@@ -735,8 +735,8 @@ struct proc **pp2;
/* compare percent cpu (pctcpu) */
if ((lresult = PP(p2, p_pctcpu) - PP(p1, p_pctcpu)) == 0)
{
- /* use cpticks to break the tie */
- if ((result = PP(p2, p_cpticks) - PP(p1, p_cpticks)) == 0)
+ /* use lifetime CPU usage to break the tie */
+ if ((result = PP(p2, p_rtime).tv_sec - PP(p1, p_rtime).tv_sec) == 0)
{
/* use process state to break the tie */
if ((result = sorted_state[(unsigned char) PP(p2, p_stat)] -