From 9d4e12540e1876b7bbd23131fcafead475f6ca6d Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 31 Jul 2003 20:46:33 +0000 Subject: When dumping swap information, drop the "Type" field which displays a constant string of little information these days. This removes the need to #include which is due to become a kernel only include file. --- usr.sbin/pstat/pstat.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'usr.sbin/pstat') diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index eb23ec9..3f4caff 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -64,7 +64,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include @@ -486,9 +485,9 @@ print_swap_header(void) header = getbsize(&hlen, &blocksize); if (totalflag == 0) - (void)printf("%-15s %*s %8s %8s %8s %s\n", + (void)printf("%-15s %*s %8s %8s %8s\n", "Device", hlen, header, - "Used", "Avail", "Capacity", "Type"); + "Used", "Avail", "Capacity"); } static void @@ -506,12 +505,10 @@ print_swap(struct kvm_swap *ksw) (void)printf("%-15s %*d ", ksw->ksw_devname, hlen, CONVERT(ksw->ksw_total)); - (void)printf("%8d %8d %5.0f%% %s\n", + (void)printf("%8d %8d %5.0f%%\n", CONVERT(ksw->ksw_used), CONVERT(ksw->ksw_total - ksw->ksw_used), - (ksw->ksw_used * 100.0) / ksw->ksw_total, - (ksw->ksw_flags & SW_SEQUENTIAL) ? - "Sequential" : "Interleaved"); + (ksw->ksw_used * 100.0) / ksw->ksw_total); } } -- cgit v1.1