diff options
author | keramida <keramida@FreeBSD.org> | 2005-03-21 16:36:05 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2005-03-21 16:36:05 +0000 |
commit | 87827d7ae67f8d6153ac6a42a2f9b2d901eb3474 (patch) | |
tree | eef6e0926cc896ad30941537a3fcdc82579dcb88 /include/nss.h | |
parent | 273e89f9db7ed2f4f3b76bebcd2a59c85b105366 (diff) | |
download | FreeBSD-src-87827d7ae67f8d6153ac6a42a2f9b2d901eb3474.zip FreeBSD-src-87827d7ae67f8d6153ac6a42a2f9b2d901eb3474.tar.gz |
- 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
Diffstat (limited to 'include/nss.h')
0 files changed, 0 insertions, 0 deletions