Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2019 22:02:27 +0000 (UTC)
From:      Tim Bishop <tdb@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r490905 - head/devel/libstatgrab/files
Message-ID:  <201901212202.x0LM2RhQ027732@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tdb
Date: Mon Jan 21 22:02:27 2019
New Revision: 490905
URL: https://svnweb.freebsd.org/changeset/ports/490905

Log:
  Forgot the patch in r490904 :-(

Added:
  head/devel/libstatgrab/files/
  head/devel/libstatgrab/files/extra-patch-src_libstatgrab_memory__stats.c   (contents, props changed)

Added: head/devel/libstatgrab/files/extra-patch-src_libstatgrab_memory__stats.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libstatgrab/files/extra-patch-src_libstatgrab_memory__stats.c	Mon Jan 21 22:02:27 2019	(r490905)
@@ -0,0 +1,14 @@
+--- src/libstatgrab/memory_stats.c.orig	2019-01-21 17:51:57 UTC
++++ src/libstatgrab/memory_stats.c
+@@ -323,10 +323,7 @@ sg_get_mem_stats_int(sg_mem_stats *mem_stats_buf) {
+ 		RETURN_WITH_SET_ERROR_WITH_ERRNO("mem", SG_ERROR_SYSCTLBYNAME, "vm.stats.vm.v_inactive_count");
+ 	}
+ 
+-	size = sizeof(cache_count);
+-	if (sysctlbyname("vm.stats.vm.v_cache_count", &cache_count, &size, NULL, 0) < 0) {
+-		RETURN_WITH_SET_ERROR_WITH_ERRNO("mem", SG_ERROR_SYSCTLBYNAME, "vm.stats.vm.v_cache_count");
+-	}
++	cache_count = 0;
+ 
+ 	/* Of couse nothing is ever that simple :) And I have inactive pages to
+ 	 * deal with too. So I'm going to add them to free memory :)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901212202.x0LM2RhQ027732>