Parcourir la source

Files: general info.

Heikki Hokkanen il y a 18 ans
Parent
révision
10f57acf28
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8
    0
      statgit

+ 8
- 0
statgit Voir le fichier

@@ -402,8 +402,16 @@ class HTMLReportCreator(ReportCreator):
402 402
 		f.write('<h1>Files</h1>')
403 403
 		self.printNav(f)
404 404
 
405
+		f.write('<dl>\n')
406
+		f.write('<dt>Total files</dt><dd>%d</dd>' % data.getTotalFiles())
407
+		f.write('<dt>Total lines</dt><dd>%d</dd>' % data.getTotalLOC())
408
+		f.write('<dt>Average file size</dt><dd>%.2f bytes</dd>' % ((100.0 * data.getTotalLOC()) / data.getTotalFiles()))
409
+		f.write('</dl>\n')
410
+
405 411
 		f.write('<h2>File count by date</h2>')
406 412
 
413
+		f.write('<h2>Average file size by date</h2>')
414
+
407 415
 		f.write('</body></html>')
408 416
 		f.close()
409 417