diff options
author | Vladimir Kobal <vlad@prokk.net> | 2019-01-11 10:28:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-11 10:28:31 +0200 |
commit | 54beb88cd1db9e61d7f0774fdb92c41aaf754ca8 (patch) | |
tree | ae69ac8ee79caf4905f041cf3ab6c98733567fc8 /collectors/proc.plugin | |
parent | 0a294e0a08a067d963adad68f722a72340597d4a (diff) |
Fix cached memory calculation (#5151)
Diffstat (limited to 'collectors/proc.plugin')
-rw-r--r-- | collectors/proc.plugin/proc_meminfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/proc.plugin/proc_meminfo.c b/collectors/proc.plugin/proc_meminfo.c index f2259c7cd3..ae399c4400 100644 --- a/collectors/proc.plugin/proc_meminfo.c +++ b/collectors/proc.plugin/proc_meminfo.c @@ -146,7 +146,7 @@ int do_proc_meminfo(int update_every, usec_t dt) { // -------------------------------------------------------------------- // http://stackoverflow.com/questions/3019748/how-to-reliably-measure-available-memory-in-linux - unsigned long long MemCached = Cached + Slab; + unsigned long long MemCached = Cached + SReclaimable; unsigned long long MemUsed = MemTotal - MemFree - MemCached - Buffers; if(do_ram) { |