summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat/vmstat.c
diff options
context:
space:
mode:
authorscrappy <scrappy@FreeBSD.org>1997-03-16 23:11:07 +0000
committerscrappy <scrappy@FreeBSD.org>1997-03-16 23:11:07 +0000
commit3e659767427f7c6dc631e36ed5364d7d7e128fe1 (patch)
treea4b64fbb4375b23d1374fd91e01b6f1df38b154b /usr.bin/vmstat/vmstat.c
parente90724566c471cb91159cccf9b2e87cbfdaa7b1c (diff)
downloadFreeBSD-src-3e659767427f7c6dc631e36ed5364d7d7e128fe1.zip
FreeBSD-src-3e659767427f7c6dc631e36ed5364d7d7e128fe1.tar.gz
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
Diffstat (limited to 'usr.bin/vmstat/vmstat.c')
-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 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],
OpenPOWER on IntegriCloud