From: Michael Stapelberg Date: Sat, 9 Aug 2008 12:42:24 +0000 (+0200) Subject: memory plugin: The variable is named cache, not cached, at least on libstatgrab ... X-Git-Tag: collectd-4.3.4~20 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=59f405559485a04c30b88c2f68fa9e112bdab6a6;p=collectd.git memory plugin: The variable is named cache, not cached, at least on libstatgrab >= 0.16 Signed-off-by: Florian Forster --- diff --git a/src/memory.c b/src/memory.c index 583f71a2..a4a9af3a 100644 --- a/src/memory.c +++ b/src/memory.c @@ -319,7 +319,7 @@ static int memory_read (void) if ((ios = sg_get_mem_stats ()) != NULL) { memory_submit ("used", ios->used); - memory_submit ("cached", ios->cached); + memory_submit ("cached", ios->cache); memory_submit ("free", ios->free); } #endif /* HAVE_LIBSTATGRAB */