X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_tail_match.c;h=99d5decbec4dd069150c0cd8a576fc78f6e6f6ad;hb=e81567f2a645fd15f4384ca9569119bc66c1412a;hp=377336f6f18ee7dd022590f1183f32d50a3f6d9f;hpb=ec43e8a33bdcb116e75310c7bd9daae3bc912834;p=collectd.git diff --git a/src/daemon/utils_tail_match.c b/src/daemon/utils_tail_match.c index 377336f6..99d5decb 100644 --- a/src/daemon/utils_tail_match.c +++ b/src/daemon/utils_tail_match.c @@ -98,12 +98,7 @@ static int simple_submit_match (cu_match_t *match, void *user_data) vl.interval = data->interval; plugin_dispatch_values (&vl); - if (match_value->ds_type & UTILS_MATCH_DS_TYPE_GAUGE) - { - match_value->value.gauge = NAN; - match_value->values_num = 0; - } - + match_value_reset (match_value); return (0); } /* int simple_submit_match */