- Add memory calculation fix

- Bump PORTREVISION

PR:		251103
Submitted by:	ncrogers@gmail.com
This commit is contained in:
Ryan Steinmetz
2020-11-15 16:27:33 +00:00
parent e921b0c378
commit 763e985f22
2 changed files with 12 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
PORTNAME= snmp
PORTVERSION= 5.9
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION} \

View File

@@ -0,0 +1,11 @@
--- agent/mibgroup/hardware/memory/memory_freebsd.c.orig 2015-02-20 14:44:47 UTC
+++ agent/mibgroup/hardware/memory/memory_freebsd.c
@@ -163,7 +163,7 @@ int netsnmp_mem_arch_load( netsnmp_cache
if (!mem->descr)
mem->descr = strdup("Cached memory");
mem->units = pagesize;
- mem->size = cache_count;
+ mem->size = cache_count + inact_count;
mem->free = 0;
}