Skip to content

Commit

Permalink
mis-read the timing implementation, fixed to to add "|ms" to an integ…
Browse files Browse the repository at this point in the history
…er time, not take a string "integer|ms"
  • Loading branch information
Steve Ivy authored and kastner committed Apr 11, 2011
1 parent e7d6b82 commit dbc049f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python_example.py
Expand Up @@ -12,13 +12,15 @@
class Statsd(object):

@staticmethod
def timing(stats, time, sample_rate=1):
def timing(stat, time, sample_rate=1):
"""
Log timing information
>>> from python_example import Statsd
>>> Statsd.timing('some.time','500|ms')
"""
Statsd.update_stats(stats, time, sample_rate)
stats = {}
stats[stat] = "%d|ms" % time
Statsd.send(stats, sample_rate)

@staticmethod
def increment(stats, sample_rate=1):
Expand Down

0 comments on commit dbc049f

Please sign in to comment.