Fix count of reviewers

The list of reviewers in the code actually includes people that didn't
do any reviews, but received them.  Since tracking received reviews,
this value became inaccurate.

Change-Id: I04c0793823e1371e5b2215c092c8bed4e7ce118f
This commit is contained in:
Russell Bryant 2013-11-28 08:59:48 -05:00
parent 44df331029
commit 1416f45759
1 changed files with 2 additions and 1 deletions

View File

@ -275,9 +275,10 @@ def main(argv=None):
file_obj.write(
'\nTotal reviews: %d (%.1f/day)\n' % (
total, float(total) / options.days))
num_reviewers = len([r for r in reviewers if r[0]['total']])
file_obj.write(
'Total reviewers: %d (avg %.1f reviews/day)\n' % (
len(reviewers), float(total) / options.days / len(reviewers)))
num_reviewers, float(total) / options.days / num_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'])