From: Marc Fournier Date: Fri, 8 Aug 2014 09:05:33 +0000 (+0200) Subject: memory: adjust safeguard to changes from previous commit X-Git-Tag: collectd-5.5.0~176^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=121339cfc548d2d5bb0e65a2a83a6fd6bb803686;p=collectd.git memory: adjust safeguard to changes from previous commit --- 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);