From 494c2067718d0c58116be15337f466e393273617 Mon Sep 17 00:00:00 2001 From: Lorenzo Alberton Date: Mon, 21 Mar 2016 18:51:20 +0000 Subject: [PATCH] remove pointless Sprintf from PrecisionTiming() --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index baca651..dd533de 100644 --- a/client.go +++ b/client.go @@ -121,7 +121,7 @@ func (c *StatsdClient) Timing(stat string, delta int64) error { // PrecisionTiming - Track a duration event // the time delta has to be a duration func (c *StatsdClient) PrecisionTiming(stat string, delta time.Duration) error { - return c.send(stat, fmt.Sprintf("%.6f%s|ms", float64(delta)/float64(time.Millisecond), "%d"), 0) + return c.send(stat, "%.6f|ms", float64(delta)/float64(time.Millisecond)) } // Gauge - Gauges are a constant data type. They are not subject to averaging,