Skip to content

Commit

Permalink
remove pointless Sprintf from PrecisionTiming()
Browse files Browse the repository at this point in the history
  • Loading branch information
quipo committed Mar 21, 2016
1 parent c197c2a commit 494c206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 494c206

Please sign in to comment.