From: octo Date: Wed, 7 Jun 2006 16:53:54 +0000 (+0000) Subject: freebsd branch: memory plugin: Quick bugfix. Works under FreeBSD now. X-Git-Tag: svn-trunk~2^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=96bb1c1cbd80b1425b4900af870dba45302e57e4;p=collectd.git freebsd branch: memory plugin: Quick bugfix. Works under FreeBSD now. --- diff --git a/src/memory.c b/src/memory.c index 6c89dbcb..a6fc1abf 100644 --- a/src/memory.c +++ b/src/memory.c @@ -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",