Collect simple vote count stats.

This commit is contained in:
Max Goodman
2013-09-05 17:21:26 -07:00
parent fcb49ce518
commit 226245797a

View File

@@ -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)