From 2b29d1b707c9de252bcc0abe869aa6a47b4fbe80 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 13 Nov 2013 06:59:53 -0500 Subject: [PATCH] Add some per day stats Show the number per day of - reviews - reviews by core team - patch sets created Change-Id: I9203828e18f126c3f70c8cf7c3914b9826ed44e8 --- reviewers.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/reviewers.py b/reviewers.py index 42552f3..06b7405 100755 --- a/reviewers.py +++ b/reviewers.py @@ -235,12 +235,16 @@ def main(argv=None): file_obj.write( '** -- %s-core team member\n' % projects[0]['name']) writer(reviewer_data, file_obj) - file_obj.write('\nTotal reviews: %d\n' % total) + file_obj.write('\nTotal reviews: %d (%.1f/day)\n' % (total, + float(total) / options.days)) file_obj.write('Total reviewers: %d\n' % len(reviewers)) - file_obj.write('Total reviews by core team: %d\n' % core_total) + file_obj.write('Total reviews by core team: %d (%.1f/day)\n' % ( + core_total, float(core_total) / options.days)) file_obj.write('Core team size: %d\n' % len(project['core-team'])) - file_obj.write('New patch sets in the last %d days: %d\n' % ( - options.days, patches_created)) + file_obj.write( + 'New patch sets in the last %d days: %d (%.1f/day)\n' + % (options.days, patches_created, + float(patches_created) / options.days)) file_obj.write( '\n(*) Disagreements are defined as a +1 or +2 vote on a ' \ 'patch where a core team member later gave a -1 or -2 vote' \