aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authorJens Schweikhardt <schweikh@FreeBSD.org>2001-06-23 17:52:10 +0000
committerJens Schweikhardt <schweikh@FreeBSD.org>2001-06-23 17:52:10 +0000
commitf40be3e1570c36e77322f5e7d270e03b3bb4e438 (patch)
tree99010cad56333a9c4a5c66032cd4c65ca86aad0b /usr.bin/vmstat
parentf962cba5c374e3e3de5c0bdd875235cea9c94fe1 (diff)
downloadsrc-f40be3e1570c36e77322f5e7d270e03b3bb4e438.tar.gz
src-f40be3e1570c36e77322f5e7d270e03b3bb4e438.zip
Reduce field width for some columns so that the default output fits in <= 79
columns. 80 columns + newline is a problem for some terminals including syscons. Requested by: bde MFC after: 1 week
Notes
Notes: svn path=/head/; revision=78672
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 11dd1f0ccd71..fffd86c0de7e 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -473,7 +473,7 @@ dovmstat(interval, reps)
printf("Can't get kerninfo: %s\n", strerror(errno));
bzero(&total, sizeof(total));
}
- (void)printf("%2d %2d %2d",
+ (void)printf("%2d %1d %1d",
total.t_rq - 1, total.t_dw + total.t_pw, total.t_sw);
#define vmstat_pgtok(a) ((a) * sum.v_page_size >> 10)
#define rate(x) (((x) + halfuptime) / uptime) /* round */
@@ -523,13 +523,13 @@ printhdr()
int i, num_shown;
num_shown = (num_selected < maxshowdevs) ? num_selected : maxshowdevs;
- (void)printf(" procs memory page%*s", 19, "");
+ (void)printf(" procs memory page%*s", 19, "");
if (num_shown > 1)
(void)printf(" disks %*s", num_shown * 4 - 7, "");
else if (num_shown == 1)
(void)printf("disk");
(void)printf(" faults cpu\n");
- (void)printf(" r b w avm fre flt re pi po fr sr ");
+ (void)printf(" r b w avm fre flt re pi po fr sr ");
for (i = 0; i < num_devices; i++)
if ((dev_select[i].selected)
&& (dev_select[i].selected <= maxshowdevs))