aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libgtop
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-08-26 23:45:30 +0800
committermarcus <marcus@FreeBSD.org>2002-08-26 23:45:30 +0800
commit1f5a5e41a9aeaba71403e2aa5bdcf10cee66698e (patch)
treedaeed21c85b197ea68e22f969365f6de61be4333 /devel/libgtop
parent73b33cf50a38ad47dd8cc8e455ec109f19366275 (diff)
downloadfreebsd-ports-gnome-1f5a5e41a9aeaba71403e2aa5bdcf10cee66698e.tar.gz
freebsd-ports-gnome-1f5a5e41a9aeaba71403e2aa5bdcf10cee66698e.tar.zst
freebsd-ports-gnome-1f5a5e41a9aeaba71403e2aa5bdcf10cee66698e.zip
MFlibgtop2: Fix swap size calculation by multiplying by PAGE_SIZE.
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;
+