diff options
author | keramida <keramida@FreeBSD.org> | 2005-05-18 13:42:51 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2005-05-18 13:42:51 +0000 |
commit | dec56f15487767a20c1089c1d3c2ad308e3a1c84 (patch) | |
tree | 9f745000ee0ac15ab5bb6e832af669e07feae97d /usr.bin/top | |
parent | 0f9725e09b1113e803b8655641b23fbe9c5e7719 (diff) | |
download | FreeBSD-src-dec56f15487767a20c1089c1d3c2ad308e3a1c84.zip FreeBSD-src-dec56f15487767a20c1089c1d3c2ad308e3a1c84.tar.gz |
(1) Revert unnecessary indentation changes I committed as part of the
last version and (2) remove a disabled debugging fprintf() that I
accidentally committed here.
Noticed by: simon (2)
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/machine.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 335710f..789b987 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -844,17 +844,15 @@ static int sorted_state[] = }; -#define ORDERKEY_PCTCPU(a, b) do { \ - long diff; \ - if (ps.wcpu) \ - diff = floor(1.0E6 * weighted_cpu(pctdouble((b)->ki_pctcpu), (b))) - \ - floor(1.0E6 * weighted_cpu(pctdouble((a)->ki_pctcpu), (a))); \ - else \ - diff = (long)(b)->ki_pctcpu - (long)(a)->ki_pctcpu; \ - /* fprintf(stderr, "XXX: wcpu %d a %p (%s) b %p (%s) foo %lf\n", \ - ps.wcpu, (a), (a)->ki_comm, (b), (b)->ki_comm, foo); */ \ - if (diff != 0) \ - return (diff > 0 ? 1 : -1); \ +#define ORDERKEY_PCTCPU(a, b) do { \ + long diff; \ + if (ps.wcpu) \ + diff = floor(1.0E6 * weighted_cpu(pctdouble((b)->ki_pctcpu), (b))) - \ + floor(1.0E6 * weighted_cpu(pctdouble((a)->ki_pctcpu), (a))); \ + else \ + diff = (long)(b)->ki_pctcpu - (long)(a)->ki_pctcpu; \ + if (diff != 0) \ + return (diff > 0 ? 1 : -1); \ } while (0) #define ORDERKEY_CPTICKS(a, b) do { \ |