summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c')
-rw-r--r--net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c b/net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c
new file mode 100644
index 000000000000..f7b5e603716d
--- /dev/null
+++ b/net-mgmt/net-snmp-devel/files/patch-memory_freebsd2.c
@@ -0,0 +1,11 @@
+--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig 2008-03-30 14:37:13.262895421 +0900
++++ agent/mibgroup/ucd-snmp/memory_freebsd2.c 2008-03-30 14:37:41.921163790 +0900
+@@ -352,7 +352,7 @@
+ #ifdef darwin
+ long_ret = ptok(mem.v_lookups);
+ #else
+- long_ret = ptok(mem.v_cache_count);
++ long_ret = ptok(mem.v_cache_count) + ptok(mem.v_inactive_count);
+ #endif
+ return ((u_char *) (&long_ret));
+ #endif