summaryrefslogtreecommitdiff
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-11-17 19:31:52 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-11-17 19:31:52 +0000
commita2e59d80d59752f376955755952db332d670d05a (patch)
treebd7c28f24b42a3795802bd96d455ba86b1fb2e9c /usr.sbin/pstat
parent0749cbc1a47a54d0ec9af0e7192727827ba6fabc (diff)
Notes
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 519f4d8bb37a..6130e77bd254 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -526,7 +526,7 @@ print_swap(struct kvm_swap *ksw)
++nswdev;
if (totalflag == 0)
print_swap_line(ksw->ksw_devname, ksw->ksw_total,
- ksw->ksw_used, ksw->ksw_total,
+ ksw->ksw_used, ksw->ksw_total - ksw->ksw_used,
(ksw->ksw_used * 100.0) / ksw->ksw_total);
}