1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/usr.sbin/pstat
Giorgos Keramidas 7257230f7b - Add a -h flag to pstat to print swap sizes in "human readable"
format, with humanize_number(3).

- Move the common parts of the code that prints the sizes for a single
  swap device and the total to a single function to avoid repeating
  the humanize_number() stuff all over the place.

- Change the type of CONVERT() from intmax_t to int64_t, since this
  makes calling humanize_number() easier but cast the values to
  intmax_t before printing them, to make use of the %jd format that
  printf() supports.

- Document the new -h flag in the manpage and bump its date.

Approved by:	pjd
Useful tips:	brooks
MFC after:	2 weeks
2005-03-21 16:36:05 +00:00
..
Makefile - Add a -h flag to pstat to print swap sizes in "human readable" 2005-03-21 16:36:05 +00:00
pstat.8 - Add a -h flag to pstat to print swap sizes in "human readable" 2005-03-21 16:36:05 +00:00
pstat.c - Add a -h flag to pstat to print swap sizes in "human readable" 2005-03-21 16:36:05 +00:00