From 617ab1acea89e0d0be874c6fbaa626ea5ae87c50 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 14 Jan 2014 09:08:01 +0100 Subject: [PATCH] collectd.conf(5): Correct default value used. --- src/collectd.conf.pod | 2 +- src/memory.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) 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; -- 2.30.2