diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-24 20:16:36 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-24 20:16:36 +0000 |
commit | 857395364cbebcaf6c715bd15969963c8cd3029e (patch) | |
tree | 888967b903771bae66c6711e301a8e5ce70927bd /usr.bin | |
parent | 7879f173be1d77a063023021ea7676bd5cacae8c (diff) |
Display even zeros so that the swap output makes more sense.
From Brian Poole <raj@cerias.purdue.edu>
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/top/display.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/top/display.c b/usr.bin/top/display.c index 05c4f5a87c0..7b4efd4da46 100644 --- a/usr.bin/top/display.c +++ b/usr.bin/top/display.c @@ -1,4 +1,4 @@ -/* $OpenBSD: display.c,v 1.5 2001/07/27 17:13:42 deraadt Exp $ */ +/* $OpenBSD: display.c,v 1.6 2001/08/24 20:16:35 art Exp $ */ /* * Top users/processes display for Unix @@ -988,8 +988,7 @@ register char **names; /* get the number to format */ num = *numbers++; - /* display only non-zero numbers */ - if (num > 0) + if (num >= 0) { /* is this number in kilobytes? */ if (thisname[0] == 'K') |