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:
parent
2fb3500815
commit
2df624ad0e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=490905
@ -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 :)
|
Loading…
Reference in New Issue
Block a user