From: Florian Forster Date: Tue, 1 Nov 2016 06:58:57 +0000 (+0100) Subject: src/daemon/utils_match.c: Add GAUGE_PERSIST logic to default_callback(). X-Git-Tag: collectd-5.7.0~39 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=65f84d32f19881b960488059ae194b47cd67430e;p=collectd.git src/daemon/utils_match.c: Add GAUGE_PERSIST logic to default_callback(). --- diff --git a/src/daemon/utils_match.c b/src/daemon/utils_match.c index 39f70433..35102b6d 100644 --- a/src/daemon/utils_match.c +++ b/src/daemon/utils_match.c @@ -100,7 +100,8 @@ static int default_callback (const char __attribute__((unused)) *str, return (-1); if ((data->values_num == 0) - || (data->ds_type & UTILS_MATCH_CF_GAUGE_LAST)) + || (data->ds_type & UTILS_MATCH_CF_GAUGE_LAST) + || (data->ds_type & UTILS_MATCH_CF_GAUGE_PERSIST)) { data->value.gauge = value; }