Memory

<% { primary: "Metric", dark: "Average" }.each do |color, label| %> <%= label %> <% end %>
<% %w[memory_used swap_used].each_with_index do |metric, i| %>
<% %w[mean median mode range].each do |action| %>
<%= titleize(metric) %> <%= titleize(action) %>
<%= @metrics.send(action, metric).round(1) %>GB
<% end %>
<% end %>