fix
This commit is contained in:
parent
e3cdc765a1
commit
4c0cf9e5cd
@ -626,15 +626,9 @@ static unsigned long evictionTimeLimitUs() {
|
||||
}
|
||||
|
||||
static void updateSysFreeMemory() {
|
||||
#ifdef __linux__
|
||||
if (g_pserver->force_eviction_percent) {
|
||||
struct sysinfo sysinf;
|
||||
memset(&sysinf, 0, sizeof sysinf);
|
||||
if (!sysinfo(&sysinf)) {
|
||||
g_pserver->cron_malloc_stats.sys_free = static_cast<size_t>(sysinf.freeram);
|
||||
}
|
||||
g_pserver->cron_malloc_stats.sys_available = getMemAvailable();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Check that memory usage is within the current "maxmemory" limit. If over
|
||||
|
Loading…
x
Reference in New Issue
Block a user