projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
647cfb1
)
memory: adjust safeguard to changes from previous commit
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
8166acc
..
0e6d49b
100644
(file)
--- 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);