Code

freebsd branch: memory plugin: Quick bugfix. Works under FreeBSD now.
authorocto <octo>
Wed, 7 Jun 2006 16:53:54 +0000 (16:53 +0000)
committerocto <octo>
Wed, 7 Jun 2006 16:53:54 +0000 (16:53 +0000)
src/memory.c

index 6c89dbcb77110070fa3eab995cb00cd728ab9c6f..a6fc1abf381db3572d479b02257226414d6bf2bc 100644 (file)
@@ -213,7 +213,7 @@ static void memory_read (void)
        {
                len = sizeof (int);
                if ((status = sysctlbyname (sysctl_keys[i],
-                                               (void *) &sysctl_vals[i], len,
+                                               (void *) &sysctl_vals[i], &len,
                                                NULL, 0)) < 0)
                {
                        syslog (LOG_ERR, "memory plugin: sysctlbyname (%s): %s",