diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-08-26 15:45:30 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-08-26 15:45:30 +0000 |
commit | 864e2b0235d2048cfc97665506693c6775c5180f (patch) | |
tree | 7a8ccc57b1c8eb384831a5a10e34f6d2b0ac5d0b /devel/libgtop | |
parent | f1a6bac11a7ae8c0734786b8f83dfdd674165b0a (diff) | |
download | ports-864e2b0235d2048cfc97665506693c6775c5180f.tar.gz ports-864e2b0235d2048cfc97665506693c6775c5180f.zip |
Notes
Diffstat (limited to 'devel/libgtop')
-rw-r--r-- | devel/libgtop/Makefile | 1 | ||||
-rw-r--r-- | devel/libgtop/files/patch-sysdeps_freebsd_swap.c | 13 |
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; + |