From 65f84d32f19881b960488059ae194b47cd67430e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 1 Nov 2016 07:58:57 +0100 Subject: [PATCH] src/daemon/utils_match.c: Add GAUGE_PERSIST logic to default_callback(). --- src/daemon/utils_match.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2