svn commit: r362547 - head/usr.sbin/pstat

Piotr Pawel Stefaniak pstef at FreeBSD.org
Tue Jun 23 18:19:23 UTC 2020


Author: pstef
Date: Tue Jun 23 18:19:22 2020
New Revision: 362547
URL: https://svnweb.freebsd.org/changeset/base/362547

Log:
  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.

Modified:
  head/usr.sbin/pstat/pstat.c

Modified: head/usr.sbin/pstat/pstat.c
==============================================================================
--- head/usr.sbin/pstat/pstat.c	Tue Jun 23 17:17:13 2020	(r362546)
+++ head/usr.sbin/pstat/pstat.c	Tue Jun 23 18:19:22 2020	(r362547)
@@ -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);
 	}


More information about the svn-src-all mailing list