summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-12-23 14:25:17 +0000
committeryar <yar@FreeBSD.org>2006-12-23 14:25:17 +0000
commit9da26b3a8178e772e512ba163ed1ec730d973073 (patch)
treec9ae9844e8d4130ef190f38d4aa67219d4efba1f /usr.bin/systat
parent0ef67b91570625927aa24158bb4f9f1e8d6961af (diff)
downloadFreeBSD-src-9da26b3a8178e772e512ba163ed1ec730d973073.zip
FreeBSD-src-9da26b3a8178e772e512ba163ed1ec730d973073.tar.gz
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.
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/swap.c b/usr.bin/systat/swap.c
index 5436b1c..176826d 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)
);
OpenPOWER on IntegriCloud