From 226245797abae1e36fef1d200eb7f6a035d71ed1 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Thu, 5 Sep 2013 17:21:26 -0700 Subject: [PATCH] Collect simple vote count stats. --- r2/r2/lib/db/queries.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/r2/r2/lib/db/queries.py b/r2/r2/lib/db/queries.py index cd673f68e..3e639c1db 100755 --- a/r2/r2/lib/db/queries.py +++ b/r2/r2/lib/db/queries.py @@ -1564,6 +1564,9 @@ def process_votes(qname, limit=0): update_comment_votes([votee]) timer.intermediate("update_comment_votes") + stats.simple_event('vote.total') + if cheater: + stats.simple_event('vote.cheater') timer.flush() amqp.consume_items(qname, _handle_vote, verbose = False)