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.
This commit is contained in:
John Polstra 1996-05-27 17:47:09 +00:00
parent 37eb8f3805
commit a49b055f5c

View File

@ -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);