Don't blow up on an empty core team list

Change-Id: Ie75315a95b6be6e4efd6106f40eff83e303ed936
This commit is contained in:
Russell Bryant 2014-01-28 15:08:58 -05:00
parent 7a56a3089f
commit 2d8b51d3a2

View File

@ -168,7 +168,8 @@ def write_pretty(reviewer_data, file_obj, options, reviewers, projects,
for project in projects])
file_obj.write('Core team size: %d (avg %.1f reviews/day)\n' % (
core_team_size,
float(totals['core']) / options.days / core_team_size))
(float(totals['core']) / options.days / core_team_size) if
core_team_size else 0))
file_obj.write(
'New patch sets in the last %d days: %d (%.1f/day)\n'
% (options.days, change_stats['patches'],