aboutsummaryrefslogtreecommitdiff
path: root/devel/libgtop2
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-08-26 15:36:59 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-08-26 15:36:59 +0000
commitf1a6bac11a7ae8c0734786b8f83dfdd674165b0a (patch)
treea8d94a7ea74c09112ba2aead3ed4b3e9b3f72db4 /devel/libgtop2
parent0ac3ead5bb90074edc570032d52bc592bd9ad199 (diff)
downloadports-f1a6bac11a7ae8c0734786b8f83dfdd674165b0a.tar.gz
ports-f1a6bac11a7ae8c0734786b8f83dfdd674165b0a.zip
Notes
Diffstat (limited to 'devel/libgtop2')
-rw-r--r--devel/libgtop2/Makefile1
-rw-r--r--devel/libgtop2/files/patch-sysdeps_freebsd_swap.c13
2 files changed, 14 insertions, 0 deletions
diff --git a/devel/libgtop2/Makefile b/devel/libgtop2/Makefile
index 0ff4cc44ae16..de49486f2550 100644
--- a/devel/libgtop2/Makefile
+++ b/devel/libgtop2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libgtop2
PORTVERSION= 2.0.0
+PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= 2.0.0/releases/gnome-2.0-desktop-final
diff --git a/devel/libgtop2/files/patch-sysdeps_freebsd_swap.c b/devel/libgtop2/files/patch-sysdeps_freebsd_swap.c
new file mode 100644
index 000000000000..4896a16a8a2e
--- /dev/null
+++ b/devel/libgtop2/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;
+