summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-07-31 20:46:33 +0000
committerphk <phk@FreeBSD.org>2003-07-31 20:46:33 +0000
commit9d4e12540e1876b7bbd23131fcafead475f6ca6d (patch)
tree037fb33ff7af9f9b24469ce5f6cecc291d57c778 /usr.sbin/pstat
parent62ffcdda2dd60be1e07baa548e93e4dca20c9fcd (diff)
downloadFreeBSD-src-9d4e12540e1876b7bbd23131fcafead475f6ca6d.zip
FreeBSD-src-9d4e12540e1876b7bbd23131fcafead475f6ca6d.tar.gz
When dumping swap information, drop the "Type" field which displays
a constant string of little information these days. This removes the need to #include <vm/swap_pager.h> which is due to become a kernel only include file.
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c11
1 files changed, 4 insertions, 7 deletions
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 <sys/user.h>
#include <sys/sysctl.h>
-#include <vm/swap_pager.h>
#include <err.h>
#include <fcntl.h>
@@ -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);
}
}
OpenPOWER on IntegriCloud