ui/index.html.erb in stack_tracy-0.1.1 vs ui/index.html.erb in stack_tracy-0.1.2

- old
+ new

@@ -46,11 +46,11 @@ <div class="body"> <% events.each_with_index do |event, index| %> <% skip = excluded_objects.include?(event[:object]) || "#{event[:object]}".match(/^#/) cumulatives[event[:call]] ||= {:duration => 0.0, :count => 0} - cumulatives[event[:call]][:duration] += event[:duration] + cumulatives[event[:call]][:duration] += event[:duration].to_f cumulatives[event[:call]][:count] += 1 cumulatives[event[:call]][:average] = cumulatives[event[:call]][:duration].to_f / cumulatives[event[:call]][:count].to_f corrections.size.times do |i| event[:depth] <= corrections[0] ? corrections.shift : break end @@ -66,10 +66,10 @@ <div> <span class="time"> <%= "%.6f" % event[:time] %> </span> <span class="duration"> - <%= "%.6f" % event[:duration] %> + <%= event[:duration] ? ("%.6f" % event[:duration]) : "?" %> </span> <span class="call"> <%= "&nbsp;&nbsp;&nbsp;" * (event[:depth] - corrections.size) %> <% if (next_event = events[index + 1]) && next_event[:depth] > event[:depth] %> <a class="toggler" href="#" onclick="return false"> \ No newline at end of file