projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
963dca8
)
memory plugin: Fix the Linux-code: It submitted the same value for all RRD-files.
author
Marius Rieder
<marius.rieder@durchmesser.ch>
Sun, 6 May 2007 14:43:26 +0000
(16:43 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sun, 6 May 2007 14:43:26 +0000
(16:43 +0200)
src/memory.c
patch
|
blob
|
history
diff --git
a/src/memory.c
b/src/memory.c
index
aff16f5
..
38347e3
100644
(file)
--- 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) */