Tuk Bredsdorff avatar Tuk Bredsdorff committed 34c60c6 Draft

Also calculating total strut count now.

Comments (0)

Files changed (1)

 	# Print an overview of the struts
 	def self.print_strut_lengths
 		total_length = 0.0
+		total_count = 0
 		
 		strut_info = self.find_strut_lengths
 		strut_lengths_sorted = strut_info.keys.sort
 			name = STRUT_NAMES[index]
 			color = PRIMARY_COLORS[index]
 			total_length += count * length
+			total_count += count
 			puts "#{count} x #{name} (#{color}): #{length.to_s}"
 		end
 		
-		puts "Total length: #{total_length.to_l.to_s}"
+		puts "Total length for #{total_count} struts: #{total_length.to_l.to_s}"
 	end
 
 	def self.main
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.