aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2005-09-27 19:03:43 +0000
committerRenato Botelho <garga@FreeBSD.org>2005-09-27 19:03:43 +0000
commitce313750da82c795331664763ef12bfc93bc5e6c (patch)
tree51c705bf7dee8bdc914fd7173933b752fb33e7e8 /sysutils
parent4d2db6418bb5ef01808f3ad2660ea8bf89852306 (diff)
downloadports-ce313750da82c795331664763ef12bfc93bc5e6c.tar.gz
ports-ce313750da82c795331664763ef12bfc93bc5e6c.zip
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/symon/Makefile1
-rw-r--r--sysutils/symon/files/patch-sm_mem.c19
2 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/symon/Makefile b/sysutils/symon/Makefile
index 91df4666191a..734d7df8cd74 100644
--- a/sysutils/symon/Makefile
+++ b/sysutils/symon/Makefile
@@ -7,6 +7,7 @@
PORTNAME= symon
PORTVERSION= 2.71
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.xs4all.nl/~wpd/symon/philes/
diff --git a/sysutils/symon/files/patch-sm_mem.c b/sysutils/symon/files/patch-sm_mem.c
new file mode 100644
index 000000000000..214892ff23ce
--- /dev/null
+++ b/sysutils/symon/files/patch-sm_mem.c
@@ -0,0 +1,19 @@
+--- platform/FreeBSD/sm_mem.c.orig Tue Sep 27 18:32:40 2005
++++ platform/FreeBSD/sm_mem.c Tue Sep 27 19:00:29 2005
+@@ -119,6 +119,7 @@
+ me_stats[1] = pagetob(me_vmtotal.t_rm);
+ me_stats[2] = pagetob(me_vmtotal.t_free);
+
++ me_stats[3] = me_stats[4] = 0;
+ #ifdef HAS_XSWDEV
+ vmnswp_siz = sizeof (int);
+ if (sysctl(me_vmnswp_mib_nam, me_vmnswp_mib_len, &vmnswp_dat, (void *)&vmnswp_siz, NULL, 0) < 0) {
+@@ -134,8 +135,6 @@
+ me_stats[3] += (vmiswp_dat.xsw_used * DEV_BSIZE);
+ me_stats[4] += (vmiswp_dat.xsw_nblks * DEV_BSIZE);
+ }
+-#else
+- me_stats[3] = me_stats[4] = 0;
+ #endif
+
+ return snpack(symon_buf, maxlen, s, MT_MEM,