From 07007bfdf19b3b2e33dd31db3731e74dc41a516f Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 14 Nov 2013 12:08:24 -0500 Subject: [PATCH] Show average reviews per day Show average reviews per day across all reviewers as well as across the core review teams. Change-Id: I73cb6359d4f256c097c555b9b79d375042877cb7 --- reviewers.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/reviewers.py b/reviewers.py index 1510829..2eecfc6 100755 --- a/reviewers.py +++ b/reviewers.py @@ -237,12 +237,16 @@ def main(argv=None): writer(reviewer_data, file_obj) 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 reviewers: %d (avg %.1f reviews/day)\n' % ( + len(reviewers), + float(total) / options.days / len(reviewers))) file_obj.write('Total reviews by core team: %d (%.1f/day)\n' % ( core_total, float(core_total) / options.days)) core_team_size = sum([len(project['core-team']) for project in projects]) - file_obj.write('Core team size: %d\n' % core_team_size) + file_obj.write('Core team size: %d (avg %.1f reviews/day)\n' % ( + core_team_size, + float(core_total) / options.days / core_team_size)) file_obj.write( 'New patch sets in the last %d days: %d (%.1f/day)\n' % (options.days, patches_created,