From: Marius Rieder Date: Sat, 5 May 2007 05:58:47 +0000 (+0200) Subject: memory plugin: Fix the `sysctl'-code which submitted the same values for all instances. X-Git-Tag: collectd-4.0.0~54 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ef48404e2dc2ec0093d984bb8d6b60bec3faf52c;p=collectd.git memory plugin: Fix the `sysctl'-code which submitted the same values for all instances. --- diff --git a/src/memory.c b/src/memory.c index e169503c..aff16f54 100644 --- a/src/memory.c +++ b/src/memory.c @@ -216,10 +216,10 @@ static int memory_read (void) sysctl_vals[i] *= sysctl_vals[0]; memory_submit ("free", sysctl_vals[2]); - memory_submit ("wired", sysctl_vals[2]); - memory_submit ("active", sysctl_vals[2]); - memory_submit ("inactive", sysctl_vals[2]); - memory_submit ("cache", sysctl_vals[2]); + memory_submit ("wired", sysctl_vals[3]); + memory_submit ("active", sysctl_vals[4]); + memory_submit ("inactive", sysctl_vals[5]); + memory_submit ("cache", sysctl_vals[6]); /* #endif HAVE_SYSCTLBYNAME */ #elif defined(KERNEL_LINUX)