lib/itools/class_unuse_finder.rb in itools-1.1.1 vs lib/itools/class_unuse_finder.rb in itools-1.1.5
- old
+ new
@@ -62,9 +62,10 @@
book = Spreadsheet::Workbook.new
sheet1 = book.create_worksheet
sheet1.row(0)[0] = "序号"
sheet1.row(0)[1] = "文件名"
sheet1.row(0)[2] = "文件路径"
+ sheet1.row(0)[3] = "文件占用内存大小"
total_size = 0
@classes.each_with_index{|r_item,f_index|
# if !r_item.fr_name.include?("+")
total_size = total_size + File.size(r_item.fr_path)
# end
\ No newline at end of file