summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 647cfb1)
raw | patch | inline | side by side (parent: 647cfb1)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 8 Aug 2014 09:05:33 +0000 (11:05 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Thu, 18 Sep 2014 07:31:57 +0000 (09:31 +0200) |
src/memory.c | patch | blob | history |
diff --git a/src/memory.c b/src/memory.c
index 8166accd1e9abfcb6f122fa29c359ae080480af7..0e6d49b3cddd72846e801c67a2e1f9e610c836b2 100644 (file)
--- a/src/memory.c
+++ b/src/memory.c
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);