[collectd-changes] collectd, the system statistics collection daemon: Changes to 'collectd-4.10'
Florian Forster
octo at verplant.org
Wed Feb 29 10:34:58 CET 2012
src/conntrack.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
New commits:
commit a1a7bcd42316459361cce17e4742e2f2eb664c60
Author: Louis Opter <louis at dotcloud.com>
Date: Tue Feb 28 18:23:06 2012 +0100
Use parse_value in the conntrack plugin and submit the result even if it's zero
Dear collectd,
Please find attached a patch for the conntrack plugin.
The patch is about two things:
1. submit the value even if it is zero (which is a legitimate value according
to types.db);
2. use parse_value and a value_t instead of directly using a double and atof(3).
The first point was important because it meant that the metric was not created
when the initial value was zero. (It could also lead to holes in your graphs).
The parse_value return value is correctly checked, note that the parsed file
ends with a \n which mean that parse_value always complain when running in
debug/info maybe we should replace it with a \0 before handing the buffer to
parse_value() ?
Thanks
--
Louis Opter
Signed-off-by: Florian Forster <octo at collectd.org>
More information about the collectd-changes
mailing list