From 59f405559485a04c30b88c2f68fa9e112bdab6a6 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 9 Aug 2008 14:42:24 +0200 Subject: [PATCH] memory plugin: The variable is named cache, not cached, at least on libstatgrab >= 0.16 Signed-off-by: Florian Forster --- src/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.11.0