From 3cbfd5815b4453f16dcc8efe8110fce42cfa9b76 Mon Sep 17 00:00:00 2001 From: Piotr Pawel Stefaniak Date: Tue, 23 Jun 2020 18:19:22 +0000 Subject: [PATCH] pstat(8): improve the Size header width after r358181 All size values use fields of width 8. Also, all other headers use fields of width 8. Make the Size header added in r358181 use 8 characters as well. --- usr.sbin/pstat/pstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index 923357b2c24..bcb3df20b8b 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -475,7 +475,7 @@ print_swap_header(void) if (humanflag) { header = SIZEHDR; - hlen = sizeof(SIZEHDR); + hlen = 8; /* as the hardcoded field width of values */ } else { header = getbsize(&hlen, &blocksize); }