cvs commit: src/usr.sbin/pstat Makefile pstat.8 pstat.c
Giorgos Keramidas
keramida at FreeBSD.org
Mon Mar 21 08:36:06 PST 2005
keramida 2005-03-21 16:36:05 UTC
FreeBSD src repository (doc committer)
Modified files:
usr.sbin/pstat Makefile pstat.8 pstat.c
Log:
- 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
Revision Changes Path
1.13 +2 -2 src/usr.sbin/pstat/Makefile
1.47 +8 -3 src/usr.sbin/pstat/pstat.8
1.93 +40 -19 src/usr.sbin/pstat/pstat.c
More information about the cvs-src
mailing list