From dfedcdd8833f1fae2ae3a0ce6954cde79f6036cb Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Mon, 11 Jul 2016 00:00:00 -0500 Subject: [PATCH] vmstat: correct that wide-format when displaying disks Back in July of last year, when vmstat was modified to exploit the 2nd gen alloc & sort provision, yours truly introduced this bug (in the commit below). Reference(s): commit 8d9612f7827959363b572742172b6b4b18796bdf Signed-off-by: Jim Warner --- vmstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmstat.c b/vmstat.c index 6bb20046..0b1d79a3 100644 --- a/vmstat.c +++ b/vmstat.c @@ -581,7 +581,7 @@ static void diskformat(void) struct tm *tm_ptr; char timebuf[32]; const char format[] = "%-5s %6lu %6lu %7lu %7lu %6lu %6lu %7lu %7lu %6lu %6lu"; - const char wide_format[] = "%-5s %9lu %9lu %lu %lu %9lu %9lu %lu %lu %7lu %7lu"; + const char wide_format[] = "%-5s %9lu %9lu %11lu %11lu %9lu %9lu %11lu %11lu %7lu %7lu"; if (procps_diskstat_new(&disk_stat) < 0) xerr(EXIT_FAILURE,