Start fixing the "swap" display by saving one horizontal position.

Now the display won't overflow the 80-char row if BLOCKSIZE=1024.
The new spacing is also consistent with the "pigs" display.
This commit is contained in:
Yaroslav Tykhiy 2006-12-23 14:25:17 +00:00
parent 9409f9ed87
commit 1f4d2a1d84
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165488

View File

@ -126,7 +126,7 @@ labelswap()
row = 0;
wmove(wnd, row, 0); wclrtobot(wnd);
header = getbsize(&hlen, &blocksize);
mvwprintw(wnd, row++, 0, "%-5s%*s%9s %55s",
mvwprintw(wnd, row++, 0, "%-5s%*s%9s %s",
"Disk", hlen, header, "Used",
"/0% /10 /20 /30 /40 /50 /60 /70 /80 /90 /100");
@ -183,7 +183,7 @@ showswap()
wnd,
i + 1,
lcol,
"%9d ",
"%9d ",
CONVERT(kvmsw[i].ksw_used)
);