summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Hensley <spaceboy@indirect.com>2012-06-06 19:38:41 (GMT)
committerPatrick Hensley <spaceboy@indirect.com>2012-06-06 19:38:41 (GMT)
commit3bd4fbbe6145aa5c879bf19f76ed0fec759881e5 (patch)
treebae0abf1a9b998ed95932713a670bccd5f92256b
parent2b8948ae0a92ab447ae78ded8e7e1eebe6c4d3fc (diff)
downloadgstatsd-3bd4fbbe6145aa5c879bf19f76ed0fec759881e5.zip
gstatsd-3bd4fbbe6145aa5c879bf19f76ed0fec759881e5.tar.gz
gstatsd-3bd4fbbe6145aa5c879bf19f76ed0fec759881e5.tar.bz2
Fix to correct timer() ms scale.
-rw-r--r--gstatsd/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gstatsd/client.py b/gstatsd/client.py
index 0c6647e..f881f80 100644
--- a/gstatsd/client.py
+++ b/gstatsd/client.py
@@ -81,7 +81,7 @@ class StatsTimer(object):
raise UserWarning(E_NOSTART)
return
elapsed = time.time() - self._timestamp
- self._client.timer(self._key, int(elapsed / 1000.0))
+ self._client.timer(self._key, int(elapsed * 1000.0))
self._started = 0