summaryrefslogtreecommitdiff
path: root/python/pgq/consumer.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/pgq/consumer.py')
-rw-r--r--python/pgq/consumer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/pgq/consumer.py b/python/pgq/consumer.py
index c44ba236..af02e4fd 100644
--- a/python/pgq/consumer.py
+++ b/python/pgq/consumer.py
@@ -295,8 +295,8 @@ class Consumer(skytools.DBScript):
def stat_end(self, count):
t = time.time()
- self.stat_add('count', count)
- self.stat_add('duration', t - self.stat_batch_start)
+ self.stat_put('count', count)
+ self.stat_put('duration', t - self.stat_batch_start)
class RemoteConsumer(Consumer):