Code

memory plugin: Fix the `sysctl'-code which submitted the same values for all instances.
authorMarius Rieder <marius.rieder@inf.ethz.ch>
Sat, 5 May 2007 05:58:47 +0000 (07:58 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Sat, 5 May 2007 05:58:47 +0000 (07:58 +0200)
src/memory.c

index e169503c6de742bd89c02c558881d7edbd17253a..aff16f5434e4d81fbfc4ab614f70b46bd10915bc 100644 (file)
@@ -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)