summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2006-06-03 20:34:56 +0000
committerobrien <obrien@FreeBSD.org>2006-06-03 20:34:56 +0000
commitf16c41b4d8c8abc7c4b05ea931d0229854f10b23 (patch)
tree083f631e046ef75516ea3ed5a7b607fb116a3238 /usr.bin/vmstat
parent8d3568ae0be8d4f8b0f415366e93bfc52de32dbe (diff)
downloadFreeBSD-src-f16c41b4d8c8abc7c4b05ea931d0229854f10b23.zip
FreeBSD-src-f16c41b4d8c8abc7c4b05ea931d0229854f10b23.tar.gz
Increase the field widths of flt (total number of page faults), fr (pages
freed), & cs (CPU context switch rate). 'vmstat 1' output is now lined up for today's typical machines vs. a VAX. [tested my modest 1.6ghz laptop]
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 605319c..6ffb099 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -580,7 +580,7 @@ dovmstat(unsigned int interval, int reps)
#define rate(x) (((x) + halfuptime) / uptime) /* round */
(void)printf(" %7ld %6ld ", (long)vmstat_pgtok(total.t_avm),
(long)vmstat_pgtok(total.t_free));
- (void)printf("%4lu ",
+ (void)printf("%5lu ",
(unsigned long)rate(sum.v_vm_faults - osum.v_vm_faults));
(void)printf("%3lu ",
(unsigned long)rate(sum.v_reactivated - osum.v_reactivated));
@@ -590,12 +590,12 @@ dovmstat(unsigned int interval, int reps)
(void)printf("%3lu ",
(unsigned long)rate(sum.v_swapout + sum.v_vnodeout -
(osum.v_swapout + osum.v_vnodeout)));
- (void)printf("%3lu ",
+ (void)printf("%5lu ",
(unsigned long)rate(sum.v_tfree - osum.v_tfree));
(void)printf("%3lu ",
(unsigned long)rate(sum.v_pdpages - osum.v_pdpages));
devstats();
- (void)printf("%4lu %4lu %3lu ",
+ (void)printf("%4lu %4lu %4lu ",
(unsigned long)rate(sum.v_intr - osum.v_intr),
(unsigned long)rate(sum.v_syscall - osum.v_syscall),
(unsigned long)rate(sum.v_swtch - osum.v_swtch));
@@ -630,14 +630,14 @@ printhdr(void)
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))
(void)printf("%c%c%d ", dev_select[i].device_name[0],
dev_select[i].device_name[1],
dev_select[i].unit_number);
- (void)printf(" in sy cs us sy id\n");
+ (void)printf(" in sy cs us sy id\n");
hdrcnt = winlines - 2;
}
OpenPOWER on IntegriCloud