summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1996-05-27 17:47:09 +0000
committerjdp <jdp@FreeBSD.org>1996-05-27 17:47:09 +0000
commit26b765c5bd09623b837954595ceebc4df79535e6 (patch)
tree12710ea640c7586bb951d438f017c99be7764168 /usr.bin/systat
parent66dcddf6910e07082814643265c6131cde8e83ee (diff)
downloadFreeBSD-src-26b765c5bd09623b837954595ceebc4df79535e6.zip
FreeBSD-src-26b765c5bd09623b837954595ceebc4df79535e6.tar.gz
Fix a bug in the mbufs display, seen when there was a large number
of mbufs in use. If the number reached, e.g., 4 digits, then later decreased to 3 digits, the last digit of the 4-digit number was not erased. This caused the display to show a wildly high number of mbufs in use.
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/mbufs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/systat/mbufs.c b/usr.bin/systat/mbufs.c
index ac4f73a..28b5cc6 100644
--- a/usr.bin/systat/mbufs.c
+++ b/usr.bin/systat/mbufs.c
@@ -120,11 +120,10 @@ showmbufs()
while (max--)
waddch(wnd, 'X');
waddstr(wnd, buf);
- } else {
+ } else
while (max--)
waddch(wnd, 'X');
- wclrtoeol(wnd);
- }
+ wclrtoeol(wnd);
mb->m_mtypes[index] = 0;
}
wmove(wnd, 1+j, 0); wclrtobot(wnd);
OpenPOWER on IntegriCloud