Code

memory plugin: Fix the Linux-code: It submitted the same value for all RRD-files.
authorMarius Rieder <marius.rieder@durchmesser.ch>
Sun, 6 May 2007 14:43:26 +0000 (16:43 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 6 May 2007 14:43:26 +0000 (16:43 +0200)
src/memory.c

index aff16f5434e4d81fbfc4ab614f70b46bd10915bc..38347e31e22d28475b5e45f204e4484037159557 100644 (file)
@@ -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) */