lib/karafka/web/ui/controllers/dashboard.rb in karafka-web-0.7.10 vs lib/karafka/web/ui/controllers/dashboard.rb in karafka-web-0.8.0.rc1
- old
+ new
@@ -18,13 +18,13 @@
current_metrics.to_h.fetch(:aggregated)
)
# Load only historicals for the selected range
@aggregated_charts = Models::Metrics::Charts::Aggregated.new(
- @aggregated, :seconds
+ @aggregated, @params.current_range
)
- respond
+ render
end
end
end
end
end