quipo / statsd

Golang StatsD client
MIT License
164 stars 51 forks source link

Loss of Precision on PrecisionTiming on BufferedClient #19

Closed petersng closed 8 years ago

petersng commented 9 years ago

Looks like PrecisionTiming should still be passing delta, not calculating milliseconds at this point. The conversion appears to occur later. Since time.Duration is an int64, there is loss of precision here, so the value is always 0 if the delta is less than a millisecond. I tested this and I am seeing the correct values for milliseconds on payload to Statsd.