diff options
| author | Garance A Drosehn <gad@FreeBSD.org> | 2004-03-27 21:59:54 +0000 |
|---|---|---|
| committer | Garance A Drosehn <gad@FreeBSD.org> | 2004-03-27 21:59:54 +0000 |
| commit | 29d58b106b95f7d520057b2d885f58f118940341 (patch) | |
| tree | d164bf2dc39587f311f9d15eac13ed4578bf60be /bin | |
| parent | b34f38ae9e101a9c73e0a80153af92b744a6de2d (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/ps/ps.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index a446a90d82f8..0ca01c60e6e9 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -1019,9 +1019,11 @@ pscomp(const void *a, const void *b) return (getpcpu((const KINFO *)b) - getpcpu((const KINFO *)a)); if (sortby == SORTMEM) return (VSIZE((const KINFO *)b) - VSIZE((const KINFO *)a)); - i = (int)((const KINFO *)a)->ki_p->ki_tdev - (int)((const KINFO *)b)->ki_p->ki_tdev; + i = (int)((const KINFO *)a)->ki_p->ki_tdev - + (int)((const KINFO *)b)->ki_p->ki_tdev; if (i == 0) - i = ((const KINFO *)a)->ki_p->ki_pid - ((const KINFO *)b)->ki_p->ki_pid; + i = ((const KINFO *)a)->ki_p->ki_pid - + ((const KINFO *)b)->ki_p->ki_pid; return (i); } |
