app/views/pg_hero/home/system.html.erb in pghero-1.4.2 vs app/views/pg_hero/home/system.html.erb in pghero-1.5.0

- old
+ new

@@ -2,21 +2,21 @@ <p id="periods"> <% @periods.each do |name, options| %> <%= link_to name, system_path(options) %> <% end %> </p> - <% path_options = params.slice(:duration, :period) %> + <% path_options = {duration: params[:duration], period: params[:period]} %> <h1>CPU</h1> <div style="margin-bottom: 20px;"><%= line_chart cpu_usage_path(path_options), max: 100, colors: ["#5bc0de"] %></div> <h1>Load</h1> <div style="margin-bottom: 20px;"><%= line_chart load_stats_path(path_options), colors: ["#5bc0de", "#d9534f"] %></div> <h1>Connections</h1> <div style="margin-bottom: 20px;"><%= line_chart connection_stats_path(path_options), colors: ["#5bc0de"] %></div> - <% if PgHero.replica? %> + <% if @database.replica? %> <h1>Replication Lag</h1> <div style="margin-bottom: 20px;"><%= line_chart replication_lag_stats_path(path_options), colors: ["#5bc0de"] %></div> <% end %> </div>