diff options
author | dfr <dfr@FreeBSD.org> | 1998-11-25 09:45:28 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-11-25 09:45:28 +0000 |
commit | 68f5aa320d9f418d9a86b008681af9c312134b34 (patch) | |
tree | 8b9b17640bd198963546737eb810f01a770887ea /usr.bin/top/machine.c | |
parent | a4b83901e2572836195a245cd065d4d0207f8e32 (diff) | |
download | FreeBSD-src-68f5aa320d9f418d9a86b008681af9c312134b34.zip FreeBSD-src-68f5aa320d9f418d9a86b008681af9c312134b34.tar.gz |
Port top to the alpha.
Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
Diffstat (limited to 'usr.bin/top/machine.c')
-rw-r--r-- | usr.bin/top/machine.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index b0845e6..fad6d7c 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -19,7 +19,7 @@ * Steven Wallace <swallace@freebsd.org> * Wolfram Schneider <wosch@FreeBSD.org> * - * $Id: machine.c,v 1.14 1998/08/12 09:58:15 wosch Exp $ + * $Id: machine.c,v 1.15 1998/09/11 14:38:12 dt Exp $ */ @@ -628,8 +628,8 @@ char *(*get_userid)(); status, smpmode ? PP(pp, p_lastcpu) : 0, format_time(cputime), - 10000.0 * weighted_cpu(pct, pp) / hz, - 10000.0 * pct / hz, + 100.0 * weighted_cpu(pct, pp), + 100.0 * pct, cmdlength, printable(PP(pp, p_comm))); @@ -734,7 +734,7 @@ static unsigned char sorted_state[] = #define ORDERKEY_PCTCPU \ - if (lresult = PP(p2, p_pctcpu) - PP(p1, p_pctcpu), \ + if (lresult = (long) PP(p2, p_pctcpu) - (long) PP(p1, p_pctcpu), \ (result = lresult > 0 ? 1 : lresult < 0 ? -1 : 0) == 0) #define ORDERKEY_CPTICKS \ |