lib/dexter/collector.rb in pgdexter-0.2.0 vs lib/dexter/collector.rb in pgdexter-0.2.1
- old
+ new
@@ -35,10 +35,13 @@
end
queries = []
@top_queries.each do |k, v|
if new_queries.include?(k) && v[:total_time] > @min_time
- queries << Query.new(v[:query], k)
+ query = Query.new(v[:query], k)
+ query.total_time = v[:total_time]
+ query.calls = v[:calls]
+ queries << query
end
end
queries.sort_by(&:fingerprint)
end