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
15 lines
228 B
Makefile
15 lines
228 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
|
# $FreeBSD$
|
|
|
|
PROG= pstat
|
|
LINKS= ${BINDIR}/pstat ${BINDIR}/swapinfo
|
|
MAN= pstat.8
|
|
MLINKS= pstat.8 swapinfo.8
|
|
|
|
WARNS?= 2
|
|
|
|
DPADD= ${LIBKVM} ${LIBUTIL}
|
|
LDADD= -lkvm -lutil
|
|
|
|
.include <bsd.prog.mk>
|