From 2c56db3531ea901a42a137e189c0995ce3fee9a3 Mon Sep 17 00:00:00 2001 From: HUANG Wei Date: Fri, 18 Mar 2016 11:28:43 +0800 Subject: [PATCH] fixup! Inherit previous instance's stats in statsd plugin. --- plugins/inputs/statsd/statsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/statsd/statsd.go b/plugins/inputs/statsd/statsd.go index 8414e96aa..5e1e85667 100644 --- a/plugins/inputs/statsd/statsd.go +++ b/plugins/inputs/statsd/statsd.go @@ -237,7 +237,7 @@ func (s *Statsd) Start(_ telegraf.Accumulator) error { s.done = make(chan struct{}) s.in = make(chan []byte, s.AllowedPendingMessages) - if (prevInstance == nil) { + if prevInstance == nil { s.gauges = make(map[string]cachedgauge) s.counters = make(map[string]cachedcounter) s.sets = make(map[string]cachedset)