summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Socol <me@jamessocol.com>2015-10-19 15:50:03 -0400
committerJames Socol <me@jamessocol.com>2015-10-19 15:50:03 -0400
commitf5ddc98d7ce20e02ba70a0d4543612f4fd209643 (patch)
treefe73d1048511f143eb6d976fc98181253a32cf77
parentcfe99c4983d41b826feb2e61b05e80c215fbad2a (diff)
downloadpystatsd-f5ddc98d7ce20e02ba70a0d4543612f4fd209643.tar.gz
Future-proof float formatting
-rw-r--r--statsd/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/statsd/client.py b/statsd/client.py
index e8bc9c5..09ebd2d 100644
--- a/statsd/client.py
+++ b/statsd/client.py
@@ -82,7 +82,7 @@ class StatsClientBase(object):
def timing(self, stat, delta, rate=1):
"""Send new timing information. `delta` is in milliseconds."""
- self._send_stat(stat, '%f|ms' % delta, rate)
+ self._send_stat(stat, '%0.6f|ms' % delta, rate)
def incr(self, stat, count=1, rate=1):
"""Increment a stat by `count`."""