From 01b7bc4cc159e86ff446216519c66d22d3ad33f2 Mon Sep 17 00:00:00 2001 From: Alex Cope Date: Fri, 30 Jun 2023 11:21:55 -0700 Subject: [PATCH] fix --- src/evict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evict.cpp b/src/evict.cpp index 4e42c85dd..35d809e62 100644 --- a/src/evict.cpp +++ b/src/evict.cpp @@ -436,7 +436,7 @@ int getMaxmemoryState(size_t *total, size_t *logical, size_t *tofree, float *lev sys_available_mem_buffer = static_cast(g_pserver->cron_malloc_stats.sys_available - min_available_mem); if (sys_available_mem_buffer < 0) { long long mem_threshold = mem_reported + sys_available_mem_buffer; - maxmemory = ((long)maxmemory < mem_threshold) ? maxmemory : static_cast(mem_threshold); + maxmemory = ((long long)maxmemory < mem_threshold) ? maxmemory : static_cast(mem_threshold); } }