Code

tail plugin: Add a plugin to tail and parse logfiles.
[collectd.git] / src / utils_tail_match.c
index b71e205932a57e1ff57c08feb259eb3c83cd09b7..06412b9e59446e185b19e43c199892c5893fb6e9 100644 (file)
@@ -86,6 +86,12 @@ static int simple_submit_match (cu_match_t *match, void *user_data)
 
   plugin_dispatch_values (data->type, &vl);
 
+  if (match_value->ds_type & UTILS_MATCH_DS_TYPE_GAUGE)
+  {
+    match_value->value.gauge = NAN;
+    match_value->values_num = 0;
+  }
+
   return (0);
 } /* int simple_submit_match */