Permalink
Browse files

examples: python: sampling used only in counters

  • Loading branch information...
1 parent 3fb77ec commit e0f32bffa2199780e8efd1137d586ecade6ba1d8 @SaveTheRbtz SaveTheRbtz committed Dec 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/python_example.py
@@ -16,7 +16,7 @@ def __init__(self, host='localhost', port=8125):
"""
self.addr = (host, port)
- def timing(self, stat, time, sample_rate=1):
+ def timing(self, stat, time):
"""
Log timing information
@@ -25,7 +25,7 @@ def timing(self, stat, time, sample_rate=1):
"""
stats = {}
stats[stat] = "{0}|ms".format(time)
- self.sample_send(stats, sample_rate)
+ self.send(stats, self.addr)
def increment(self, stats, sample_rate=1):
"""

0 comments on commit e0f32bf

Please sign in to comment.