Code

statsd plugin: add TimerSum option
[collectd.git] / src / utils_latency.c
index 01c8b5c22ea6c9a5f5952a9a5248e055562cc800..4a250c33a4143730f1609da50af3ac428855c79a 100644 (file)
@@ -110,6 +110,13 @@ cdtime_t latency_counter_get_max (latency_counter_t *lc) /* {{{ */
   return (lc->max);
 } /* }}} cdtime_t latency_counter_get_max */
 
+cdtime_t latency_counter_get_sum (latency_counter_t *lc) /* {{{ */
+{
+  if (lc == NULL)
+    return (0);
+  return (lc->sum);
+} /* }}} cdtime_t latency_counter_get_sum */
+
 cdtime_t latency_counter_get_average (latency_counter_t *lc) /* {{{ */
 {
   double average;