diff options
author | Tim Bishop <tdb@FreeBSD.org> | 2019-01-21 22:02:27 +0000 |
---|---|---|
committer | Tim Bishop <tdb@FreeBSD.org> | 2019-01-21 22:02:27 +0000 |
commit | 2df624ad0e44aa3e1737bc371d262b3760f59536 (patch) | |
tree | 0fb5d0bc6c6c75ceff1eb0050741e9312b8088f5 | |
parent | 2fb35008159e954878f2d9b77bf30c0289254f7d (diff) | |
download | ports-2df624ad0e44aa3e1737bc371d262b3760f59536.tar.gz ports-2df624ad0e44aa3e1737bc371d262b3760f59536.zip |
Notes
-rw-r--r-- | devel/libstatgrab/files/extra-patch-src_libstatgrab_memory__stats.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/libstatgrab/files/extra-patch-src_libstatgrab_memory__stats.c b/devel/libstatgrab/files/extra-patch-src_libstatgrab_memory__stats.c new file mode 100644 index 000000000000..2189075565f9 --- /dev/null +++ b/devel/libstatgrab/files/extra-patch-src_libstatgrab_memory__stats.c @@ -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 :) |