(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)
This commit is contained in:
Giorgos Keramidas 2005-05-18 13:42:51 +00:00
parent bbf750fbff
commit 58ea49c98e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146343

View File

@ -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 { \