summaryrefslogtreecommitdiffstats
path: root/devel/libgtop2/files/patch-sysdeps_freebsd_swap.c
blob: 4896a16a8a2ebcad49c9ae4a4b7ae27a762c1e16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- sysdeps/freebsd/swap.c.orig Mon Aug 26 20:18:07 2002
+++ sysdeps/freebsd/swap.c  Mon Aug 26 20:19:18 2002
@@ -369,8 +369,8 @@
 
    buf->flags = _glibtop_sysdeps_swap;
 
-   buf->used = kvmsw[nswdev].ksw_used;
-   buf->total = kvmsw[nswdev].ksw_total;
+   buf->used = kvmsw[nswdev].ksw_used * getpagesize();
+   buf->total = kvmsw[nswdev].ksw_total * getpagesize();
 
    buf->free = buf->total - buf->used;