svn commit: r322252 - head/usr.bin/vmstat
Emmanuel Vadot
manu at FreeBSD.org
Tue Aug 8 12:18:12 UTC 2017
Author: manu
Date: Tue Aug 8 12:18:11 2017
New Revision: 322252
URL: https://svnweb.freebsd.org/changeset/base/322252
Log:
vmstat: Always emit a space after the free-memory column
When displaying in non-human form, if the free-memory number
is large (more than 7 digits), there is no space between it and
the page fault column.
PR: 221290
Submitted by: Josuah Demangeon <mail at josuah.net> (Original version)
Modified:
head/usr.bin/vmstat/vmstat.c
Modified: head/usr.bin/vmstat/vmstat.c
==============================================================================
--- head/usr.bin/vmstat/vmstat.c Tue Aug 8 11:49:36 2017 (r322251)
+++ head/usr.bin/vmstat/vmstat.c Tue Aug 8 12:18:11 2017 (r322252)
@@ -832,6 +832,7 @@ dovmstat(unsigned int interval, int reps)
xo_emit(" ");
xo_emit("{:free-memory/%7d}",
vmstat_pgtok(total.t_free));
+ xo_emit(" ");
}
xo_emit("{:total-page-faults/%5lu} ",
(unsigned long)rate(sum.v_vm_faults -
More information about the svn-src-all
mailing list