From: Marius Rieder Date: Sun, 6 May 2007 14:43:26 +0000 (+0200) Subject: memory plugin: Fix the Linux-code: It submitted the same value for all RRD-files. X-Git-Tag: collectd-4.0.0-rc9~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2c646072016d4b1abef4d15436e83e761632b548;p=collectd.git memory plugin: Fix the Linux-code: It submitted the same value for all RRD-files. --- diff --git a/src/memory.c b/src/memory.c index aff16f54..38347e31 100644 --- a/src/memory.c +++ b/src/memory.c @@ -276,10 +276,9 @@ static int memory_read (void) { mem_used -= mem_free + mem_buffered + mem_cached; memory_submit ("used", mem_used); - memory_submit ("buffered", mem_used); - memory_submit ("cached", mem_used); - memory_submit ("free", mem_used); - + memory_submit ("buffered", mem_buffered); + memory_submit ("cached", mem_cached); + memory_submit ("free", mem_free); } /* #endif defined(KERNEL_LINUX) */