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:
parent
37eb8f3805
commit
a49b055f5c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15938
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user