diff options
author | James Socol <me@jamessocol.com> | 2015-10-19 15:50:03 -0400 |
---|---|---|
committer | James Socol <me@jamessocol.com> | 2015-10-19 15:50:03 -0400 |
commit | f5ddc98d7ce20e02ba70a0d4543612f4fd209643 (patch) | |
tree | fe73d1048511f143eb6d976fc98181253a32cf77 | |
parent | cfe99c4983d41b826feb2e61b05e80c215fbad2a (diff) | |
download | pystatsd-f5ddc98d7ce20e02ba70a0d4543612f4fd209643.tar.gz |
Future-proof float formatting
-rw-r--r-- | statsd/client.py | 2 |
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`.""" |