summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1999-12-05 20:04:56 +0000
committercharnier <charnier@FreeBSD.org>1999-12-05 20:04:56 +0000
commit59ba729c30037661a58da4f4dc7092d339395a31 (patch)
tree45cffc2c00396ccc8fb891edd604e5bc57752f7d /usr.sbin/pstat
parentf585d4fa84ca5e1ad268e6d90704357091bf7416 (diff)
downloadFreeBSD-src-59ba729c30037661a58da4f4dc7092d339395a31.zip
FreeBSD-src-59ba729c30037661a58da4f4dc7092d339395a31.tar.gz
Add extra columns for printing longer device name.
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index e506d30..37b074e 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -996,13 +996,13 @@ swapmode(void)
header = getbsize(&hlen, &blocksize);
if (totalflag == 0) {
- (void)printf("%-11s %*s %8s %8s %8s %s\n",
+ (void)printf("%-15s %*s %8s %8s %8s %s\n",
"Device", hlen, header,
"Used", "Avail", "Capacity", "Type");
for (i = 0; i < n; ++i) {
(void)printf(
- "%-11s %*d ",
+ "%-15s %*d ",
kswap[i].ksw_devname,
hlen,
CONVERT(kswap[i].ksw_total)
@@ -1029,7 +1029,7 @@ swapmode(void)
);
} else if (n > 1) {
(void)printf(
- "%-11s %*d %8d %8d %5.0f%%\n",
+ "%-15s %*d %8d %8d %5.0f%%\n",
"Total",
hlen,
CONVERT(kswap[n].ksw_total),
OpenPOWER on IntegriCloud