aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2023-12-05 01:39:21 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2023-12-05 01:39:21 +0000
commit62d47a4db4579315d7b89002d7de696b44ae1415 (patch)
treeab09ca62ac60b34c21dc7f361d8086cdf85d4e1c
parent5faaa602cee093269b1a73156c95c6892b4f098d (diff)
downloadsrc-62d47a4db4579315d7b89002d7de696b44ae1415.tar.gz
src-62d47a4db4579315d7b89002d7de696b44ae1415.zip
vmstat: fix column names broken in c168508655720
Loss of the trailing space in the multi-line format string has resulted in column name being emitted as "FAILSLEEP", instead of two columns "FAIL" and "SLEEP".
-rw-r--r--usr.bin/vmstat/vmstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index f0da9044c204..6476df06fe39 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -1481,7 +1481,7 @@ domemstat_zone(void)
}
}
xo_open_container("memory-zone-statistics");
- xo_emit("{T:/%-20s} {T:/%6s} {T:/%6s} {T:/%8s} {T:/%8s} {T:/%8s} {T:/%8s}"
+ xo_emit("{T:/%-20s} {T:/%6s} {T:/%6s} {T:/%8s} {T:/%8s} {T:/%8s} {T:/%8s} "
"{T:/%4s} {T:/%4s}\n", "ITEM", "SIZE",
"LIMIT", "USED", "FREE", "REQ", "FAIL", "SLEEP", "XDOMAIN");
xo_open_list("zone");