From 9da26b3a8178e772e512ba163ed1ec730d973073 Mon Sep 17 00:00:00 2001 From: yar Date: Sat, 23 Dec 2006 14:25:17 +0000 Subject: [PATCH] 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. --- usr.bin/systat/swap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/systat/swap.c b/usr.bin/systat/swap.c index 5436b1c5871c..176826dfa675 100644 --- a/usr.bin/systat/swap.c +++ b/usr.bin/systat/swap.c @@ -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) );