Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/top/machine LP64 fix. Kills bug that caused random o...
details: https://anonhg.NetBSD.org/src/rev/8c696ef19392
branches: trunk
changeset: 471814:8c696ef19392
user: ross <ross%NetBSD.org@localhost>
date: Mon Apr 12 01:53:06 1999 +0000
description:
LP64 fix. Kills bug that caused random output "sorting" on alpha.
diffstat:
usr.bin/top/machine/m_netbsd13.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1cc4901ba7f9 -r 8c696ef19392 usr.bin/top/machine/m_netbsd13.c
--- a/usr.bin/top/machine/m_netbsd13.c Mon Apr 12 01:30:22 1999 +0000
+++ b/usr.bin/top/machine/m_netbsd13.c Mon Apr 12 01:53:06 1999 +0000
@@ -32,7 +32,7 @@
* matthew green <mrg%eterna.com.au@localhost>
*
*
- * $Id: m_netbsd13.c,v 1.2 1999/03/24 11:57:10 christos Exp $
+ * $Id: m_netbsd13.c,v 1.3 1999/04/12 01:53:06 ross Exp $
*/
#define UVM
@@ -658,11 +658,12 @@
*/
#define ORDERKEY_PCTCPU \
- if (lresult = PP(p2, p_pctcpu) - PP(p1, p_pctcpu),\
+ if (lresult = (pctcpu)PP(p2, p_pctcpu) - (pctcpu)PP(p1, p_pctcpu),\
(result = lresult > 0 ? 1 : lresult < 0 ? -1 : 0) == 0)
#define ORDERKEY_CPTICKS \
- if (lresult = PP(p2, p_rtime).tv_sec - PP(p1, p_rtime).tv_sec,\
+ if (lresult = (pctcpu)PP(p2, p_rtime).tv_sec \
+ - (pctcpu)PP(p1, p_rtime).tv_sec,\
(result = lresult > 0 ? 1 : lresult < 0 ? -1 : 0) == 0)
#define ORDERKEY_STATE \
Home |
Main Index |
Thread Index |
Old Index