Bläddra i källkod

Show average number of commits per author.

Heikki Hokkanen 15 år sedan
förälder
incheckning
c74f099913
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      gitstats

+ 1
- 1
gitstats Visa fil

@@ -574,7 +574,7 @@ class HTMLReportCreator(ReportCreator):
574 574
 		f.write('<dt>Total Files</dt><dd>%s</dd>' % data.getTotalFiles())
575 575
 		f.write('<dt>Total Lines of Code</dt><dd>%s (%d added, %d removed)</dd>' % (data.getTotalLOC(), data.total_lines_added, data.total_lines_removed))
576 576
 		f.write('<dt>Total Commits</dt><dd>%s (average %.1f commits per active day, %.1f per all days)</dd>' % (data.getTotalCommits(), float(data.getTotalCommits()) / len(data.getActiveDays()), float(data.getTotalCommits()) / data.getCommitDeltaDays()))
577
-		f.write('<dt>Authors</dt><dd>%s</dd>' % data.getTotalAuthors())
577
+		f.write('<dt>Authors</dt><dd>%s (average %.1f commits per author)</dd>' % (data.getTotalAuthors(), (1.0 * data.getTotalCommits()) / data.getTotalAuthors()))
578 578
 		f.write('</dl>')
579 579
 
580 580
 		f.write('</body>\n</html>')