1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Use dig to help with incomplete data

This commit is contained in:
Mike Perham 2022-07-29 13:34:58 -07:00
parent 7edf82fe1b
commit c74cf00f9b

View file

@ -18,7 +18,7 @@
<tr> <tr>
<td><code><a href="<%= root_path %>metrics/<%= kls %>"><%= kls %></a></code></td> <td><code><a href="<%= root_path %>metrics/<%= kls %>"><%= kls %></a></code></td>
<td><%= val %></td> <td><%= val %></td>
<td><%= top["ms"][kls] %></td> <td><%= top.dig("ms", kls) %></td>
</tr> </tr>
<% end %> <% end %>
<% else %> <% else %>
@ -43,7 +43,7 @@
<% topms.each do |kls, val| %> <% topms.each do |kls, val| %>
<tr> <tr>
<td><code><a href="<%= root_path %>metrics/<%= kls %>"><%= kls %></a></code></td> <td><code><a href="<%= root_path %>metrics/<%= kls %>"><%= kls %></a></code></td>
<td><%= top["p"][kls] %></td> <td><%= top.dig("p", kls) %></td>
<td><%= val %></td> <td><%= val %></td>
</tr> </tr>
<% end %> <% end %>