From 121339cfc548d2d5bb0e65a2a83a6fd6bb803686 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Fri, 8 Aug 2014 11:05:33 +0200 Subject: [PATCH] memory: adjust safeguard to changes from previous commit --- src/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory.c b/src/memory.c index 8166accd..0e6d49b3 100644 --- a/src/memory.c +++ b/src/memory.c @@ -327,7 +327,7 @@ static int memory_read_internal (value_list_t *vl) sstrerror (errno, errbuf, sizeof (errbuf))); } - if (mem_total < (mem_free + mem_buffered + mem_cached)) + if (mem_total < (mem_free + mem_buffered + mem_cached + mem_slab_unreclaimable + mem_slab_reclaimable)) return (-1); mem_used = mem_total - (mem_free + mem_buffered + mem_cached + mem_slab_unreclaimable + mem_slab_reclaimable); -- 2.30.2