Date: Mon, 21 Mar 2005 16:36:05 +0000 (UTC) From: Giorgos Keramidas <keramida@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/pstat Makefile pstat.8 pstat.c Message-ID: <200503211636.j2LGa5Xx054701@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503211636.j2LGa5Xx054701>