summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authorschweikh <schweikh@FreeBSD.org>2001-06-12 19:47:40 +0000
committerschweikh <schweikh@FreeBSD.org>2001-06-12 19:47:40 +0000
commitbdb89dc451cdb48e9033c565caed65888d5fe21e (patch)
tree9ef5010c4e5a3cb247cd18aab0001cd1f7d1dc39 /usr.bin/vmstat
parentd61428321f0ceb41de748a616b592b50195c51fb (diff)
downloadFreeBSD-src-bdb89dc451cdb48e9033c565caed65888d5fe21e.zip
FreeBSD-src-bdb89dc451cdb48e9033c565caed65888d5fe21e.tar.gz
Increase field width by one for 'fre' to accomodate today's memory sizes.
PR: 25267 Submitted by: Eugene Aleynikov <eugene@infospace.com> Reviewed by: joerg MFC after: 2 weeks
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 7b727a8..5181e04 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -481,7 +481,7 @@ dovmstat(interval, reps)
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 */
- (void)printf("%8ld%6ld ",
+ (void)printf("%8ld %6ld ",
(long)vmstat_pgtok(total.t_avm), (long)vmstat_pgtok(total.t_free));
(void)printf("%4lu ",
(u_long)rate(sum.v_vm_faults - osum.v_vm_faults));
@@ -527,13 +527,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))
OpenPOWER on IntegriCloud