lib/ruby-prof/graph_printer.rb in ruby-prof-0.7.6 vs lib/ruby-prof/graph_printer.rb in ruby-prof-0.7.7

- old
+ new

@@ -34,10 +34,10 @@ def calculate_thread_times # Cache thread times since this is an expensive # operation with the required sorting @result.threads.each do |thread_id, methods| - top = methods.sort.last + top = methods.max thread_time = 0.01 thread_time = top.total_time if top.total_time > 0 @thread_times[thread_id] = thread_time