exec plugin: Change the input format so it's identical to the one used in unixsock.
[collectd.git] / src / memory.c
index 38347e3..2acb412 100644 (file)
@@ -102,7 +102,7 @@ static void memory_submit (const char *type_instance, gauge_t value)
        values[0].gauge = value;
 
        vl.values = values;
-       vl.values_len = 4;
+       vl.values_len = 1;
        vl.time = time (NULL);
        strcpy (vl.host, hostname_g);
        strcpy (vl.plugin, "memory");
@@ -190,7 +190,6 @@ static int memory_read (void)
        };
        double sysctl_vals[8];
 
-       size_t len;
        int    i;
 
        for (i = 0; sysctl_keys[i] != NULL; i++)