瀏覽代碼

Files: general info.

Heikki Hokkanen 18 年之前
父節點
當前提交
10f57acf28
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      statgit

+ 8
- 0
statgit 查看文件

@@ -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