lib/sidekiq/metrics/query.rb in sidekiq-7.2.0 vs lib/sidekiq/metrics/query.rb in sidekiq-7.2.1

- old
+ new

@@ -117,9 +117,10 @@ hist[time.strftime("%H:%M")] = hist_result end def total_avg(metric = "ms") completed = totals["p"] - totals["f"] + return 0 if completed.zero? totals[metric].to_f / completed end def series_avg(metric = "ms") series[metric].each_with_object(Hash.new(0)) do |(bucket, value), result|