aboutsummaryrefslogtreecommitdiff
path: root/devel/libgtop
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-08-26 15:45:30 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-08-26 15:45:30 +0000
commit864e2b0235d2048cfc97665506693c6775c5180f (patch)
tree7a8ccc57b1c8eb384831a5a10e34f6d2b0ac5d0b /devel/libgtop
parentf1a6bac11a7ae8c0734786b8f83dfdd674165b0a (diff)
downloadports-864e2b0235d2048cfc97665506693c6775c5180f.tar.gz
ports-864e2b0235d2048cfc97665506693c6775c5180f.zip
Notes
Diffstat (limited to 'devel/libgtop')
-rw-r--r--devel/libgtop/Makefile1
-rw-r--r--devel/libgtop/files/patch-sysdeps_freebsd_swap.c13
2 files changed, 14 insertions, 0 deletions
diff --git a/devel/libgtop/Makefile b/devel/libgtop/Makefile
index 3c21eb2860fa..60429bd9fdeb 100644
--- a/devel/libgtop/Makefile
+++ b/devel/libgtop/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libgtop
PORTVERSION= 1.0.13
+PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/libgtop
diff --git a/devel/libgtop/files/patch-sysdeps_freebsd_swap.c b/devel/libgtop/files/patch-sysdeps_freebsd_swap.c
new file mode 100644
index 000000000000..4896a16a8a2e
--- /dev/null
+++ b/devel/libgtop/files/patch-sysdeps_freebsd_swap.c
@@ -0,0 +1,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;
+