From: Florian Forster Date: Tue, 14 Jan 2014 08:08:01 +0000 (+0100) Subject: collectd.conf(5): Correct default value used. X-Git-Tag: collectd-5.5.0~288^2~9 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=617ab1acea89e0d0be874c6fbaa626ea5ae87c50;p=collectd.git collectd.conf(5): Correct default value used. --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 96a45567..e2fb09f2 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -2588,7 +2588,7 @@ i.e. bytes. Defaults to B. =item B B|B Enables or disables reporting of physical memory usage in percentages, e.g. -percent of physical memory used. Defaults to B. +percent of physical memory used. Defaults to B. This is useful for deploying I in a heterogeneous environment in which the sizes of physical memory vary. diff --git a/src/memory.c b/src/memory.c index b1f2e769..e8ba9348 100644 --- a/src/memory.c +++ b/src/memory.c @@ -212,7 +212,7 @@ static int memory_read_internal (value_list_t *vl) free = (gauge_t) (((uint64_t) vm_data.free_count) * ((uint64_t) pagesize)); MEMORY_SUBMIT ("wired", wired, - "active", active, + "active", active, "inactive", inactive, "free", free); /* #endif HAVE_HOST_STATISTICS */ @@ -332,14 +332,13 @@ static int memory_read_internal (value_list_t *vl) /* #endif KERNEL_LINUX */ #elif HAVE_LIBKSTAT - /* Most of the additions here were taken as-is from the k9toolkit from - * Brendan Gregg and are subject to change I guess */ + /* Most of the additions here were taken as-is from the k9toolkit from + * Brendan Gregg and are subject to change I guess */ long long mem_used; long long mem_free; long long mem_lock; long long mem_kern; long long mem_unus; - long long mem_total; long long pp_kernel; long long physmem;