src/daemon/utils_match.c: Add GAUGE_PERSIST logic to default_callback().
authorFlorian Forster <octo@collectd.org>
Tue, 1 Nov 2016 06:58:57 +0000 (07:58 +0100)
committerFlorian Forster <octo@collectd.org>
Tue, 1 Nov 2016 06:58:57 +0000 (07:58 +0100)
src/daemon/utils_match.c

index 39f7043..35102b6 100644 (file)
@@ -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;
     }