Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.bin/top/machine pullup 1.2->1.3 (ross): Fix an LP64...
details: https://anonhg.NetBSD.org/src/rev/00a5e273b65b
branches: netbsd-1-4
changeset: 468469:00a5e273b65b
user: perry <perry%NetBSD.org@localhost>
date: Mon Apr 26 15:32:25 1999 +0000
description:
pullup 1.2->1.3 (ross): Fix an LP64 bug
diffstat:
usr.bin/top/machine/m_netbsd13.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d5023fbd9966 -r 00a5e273b65b usr.bin/top/machine/m_netbsd13.c
--- a/usr.bin/top/machine/m_netbsd13.c Mon Apr 26 15:27:23 1999 +0000
+++ b/usr.bin/top/machine/m_netbsd13.c Mon Apr 26 15:32:25 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.2.2.1 1999/04/26 15:32:25 perry 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