From 2e10c0cdeba86ade288e9fc4a0eaf8b0141f898e Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 16 Apr 2008 09:55:41 +0000 Subject: fix more bugs - stats, trigger type --- python/pgq/consumer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/pgq/consumer.py') 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): -- cgit v1.2.3