lib/roku_builder/plugins/profiler.rb in roku_builder-4.11.0 vs lib/roku_builder/plugins/profiler.rb in roku_builder-4.11.1

- old
+ new

@@ -194,9 +194,14 @@ elsif stats[:ids] stats[:ids] = stats[:ids] - previous[node][:ids] end end end + removed = previous.reject{|k,v| current.keys.include?(k)} + removed.each_pair do |node, stats| + stats[:count] *= -1 + diff[node] = stats + end diff["Total"][:total] = current["Total"][:count] diff end def print_all_nodes