ui/index.html.erb in stack_tracy-0.1.7 vs ui/index.html.erb in stack_tracy-0.1.8
- old
+ new
@@ -66,10 +66,10 @@
corrections.size.times do |i|
event[:depth] <= corrections[0] ? corrections.shift : break
end
- stack = stack[0, event[:depth] - corrections.size]
+ stack = stack[0, event[:depth] - corrections.size] || []
unless stack.include? event[:call]
cumulative[:real_duration] += event[:duration].to_f
cumulative[:real_count] += 1
cumulative[:real_average] = cumulative[:real_duration].to_f / cumulative[:real_count].to_f
end
\ No newline at end of file