Code

fix the build
[collectd.git] / src / statsd.c
index 2def1914d69614dda6fb0f13c031abc6345d740d..46575845e31be5b911c7e191d36ec7061cb0f02c 100644 (file)
@@ -725,7 +725,7 @@ static int statsd_metric_submit_unsafe (char const *name, /* {{{ */
       plugin_dispatch_values (&vl);
     }
 
-    latency_counter_reset (metrics->latency);
+    latency_counter_reset (metric->latency);
     return (0);
   }
   else if (metric->type == STATSD_SET)