1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Forgot the patch in r490904 :-(

This commit is contained in:
Tim Bishop 2019-01-21 22:02:27 +00:00
parent 2fb3500815
commit 2df624ad0e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=490905

View File

@ -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 :)