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 /usr.sbin/pstat/Makefile | |
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 'usr.sbin/pstat/Makefile')
-rw-r--r-- | usr.sbin/pstat/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pstat/Makefile b/usr.sbin/pstat/Makefile index 9d1dffe..2431224 100644 --- a/usr.sbin/pstat/Makefile +++ b/usr.sbin/pstat/Makefile @@ -8,7 +8,7 @@ MLINKS= pstat.8 swapinfo.8 WARNS?= 2 -DPADD= ${LIBKVM} -LDADD= -lkvm +DPADD= ${LIBKVM} ${LIBUTIL} +LDADD= -lkvm -lutil .include <bsd.prog.mk> |