output/mean_time.rb in wvanbergen-request-log-analyzer-0.2.2 vs output/mean_time.rb in wvanbergen-request-log-analyzer-0.3.0
- old
+ new
@@ -1,7 +1,6 @@
# Prints table sorted by the duration of the requests
-amount = $arguments[:amount] || 10
puts
-puts "Top #{amount} actions by time - per request mean"
+puts "Top #{@amount} actions by time - per request mean"
puts green("========================================================================")
-print_table($summarizer, :mean_time, amount)
+print_table(@summarizer, :mean_time, @amount)