From 58ea49c98eb6d433dedc0bcead38f5358e092c0b Mon Sep 17 00:00:00 2001 From: Giorgos Keramidas Date: Wed, 18 May 2005 13:42:51 +0000 Subject: [PATCH] (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) --- usr.bin/top/machine.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 335710f7df23..789b9874f2f3 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 { \