Fix conceptual buglet in default_callback
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 10 Aug 2016 10:07:14 +0000 (20:07 +1000)
committerFlorian Forster <octo@collectd.org>
Thu, 11 Aug 2016 08:04:56 +0000 (10:04 +0200)
commita7b0cdea4f6a0f8d29ade21ae058182f720dd432
treea612963b77b0c9d5ae479e435c4b1fbbb3cf60e1
parent3d7453f6c3a13dc49e9ed6dd6d7a19202a3b087e
Fix conceptual buglet in default_callback

The 'DERIVE' path in default_callback() increments the 'counter' field of
value instead of the 'derive' field.  Since those fields have the same
type and offset within the value union this will still work fine, but
AFAICT it's conceptually incorrect.  This corrects it.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Florian Forster <octo@collectd.org>
src/daemon/utils_match.c