svn commit: r555237 - in head/net-mgmt/net-snmp: . files

Ryan Steinmetz zi at FreeBSD.org
Sun Nov 15 16:27:34 UTC 2020


Author: zi
Date: Sun Nov 15 16:27:33 2020
New Revision: 555237
URL: https://svnweb.freebsd.org/changeset/ports/555237

Log:
  - Add memory calculation fix
  - Bump PORTREVISION
  
  PR:		251103
  Submitted by:	ncrogers at gmail.com

Added:
  head/net-mgmt/net-snmp/files/patch-agent_mibgroup_hardware_memory_memory__freebsd.c   (contents, props changed)
Modified:
  head/net-mgmt/net-snmp/Makefile

Modified: head/net-mgmt/net-snmp/Makefile
==============================================================================
--- head/net-mgmt/net-snmp/Makefile	Sun Nov 15 16:21:51 2020	(r555236)
+++ head/net-mgmt/net-snmp/Makefile	Sun Nov 15 16:27:33 2020	(r555237)
@@ -3,6 +3,7 @@
 
 PORTNAME=	snmp
 PORTVERSION=	5.9
+PORTREVISION=   1
 PORTEPOCH=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION} \

Added: head/net-mgmt/net-snmp/files/patch-agent_mibgroup_hardware_memory_memory__freebsd.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/net-snmp/files/patch-agent_mibgroup_hardware_memory_memory__freebsd.c	Sun Nov 15 16:27:33 2020	(r555237)
@@ -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;
+     }
+ 


More information about the svn-ports-all mailing list