From 3e659767427f7c6dc631e36ed5364d7d7e128fe1 Mon Sep 17 00:00:00 2001 From: scrappy Date: Sun, 16 Mar 1997 23:11:07 +0000 Subject: Slight visual formatting change to the output so that: procs memory page disks faults cpu r b w avm fre flt re pi po fr sr w0 w1 in sy cs us sy id 1 0 04135184 6016 180 2 1 0 158 135 10 0 386 1820 77 20 6 74 looks like: procs memory page disks faults cpu r b w avm fre flt re pi po fr sr w0 w1 in sy cs us sy id 1 0 0 4135188 6016 180 2 1 0 158 135 10 0 387 1821 77 20 6 74 --- usr.bin/vmstat/vmstat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/vmstat/vmstat.c') diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 4ec7152..6f65a30 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -426,7 +426,7 @@ dovmstat(interval, reps) total.t_rq - 1, total.t_dw + total.t_pw, total.t_sw); #define pgtok(a) ((a) * sum.v_page_size >> 10) #define rate(x) (((x) + halfuptime) / uptime) /* round */ - (void)printf("%6ld%6ld ", + (void)printf("%8ld%6ld ", pgtok(total.t_avm), pgtok(total.t_free)); (void)printf("%4lu ", rate(sum.v_vm_faults - osum.v_vm_faults)); (void)printf("%3lu ", @@ -465,13 +465,13 @@ printhdr() { register int i; - (void)printf(" procs memory page%*s", 20, ""); + (void)printf(" procs memory page%*s", 20, ""); if (ndrives > 1) (void)printf("disks %*s faults cpu\n", ndrives * 3 - 6, ""); else (void)printf("%*s faults cpu\n", ndrives * 3, ""); - (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 < dk_ndrive; i++) if (dr_select[i]) (void)printf("%c%c ", dr_name[i][0], -- cgit v1.1