Fix message rates breakdown

This commit is contained in:
Simon MacMullen 2014-09-22 14:38:38 +01:00
parent 0a0f7d749e
commit 74ccb09949
1 changed files with 2 additions and 10 deletions

View File

@ -1,8 +1,5 @@
<h3>Deliveries</h3>
<% if (object && object.length > 0) { %>
<%
var col_redeliver = !is_col_empty(object, 'redeliver', function(o) {return o.stats;});
%>
<table class="list">
<tr>
<% if (mode == 'queue') { %>
@ -10,12 +7,7 @@
<% } else { %>
<th>Queue</th>
<% } %>
<th>
deliver / get
<% if (col_redeliver) { %>
<sub>of which redelivered</sub>
<% } %>
</th>
<th>deliver / get</th>
<th>ack</th>
</tr>
<%
@ -28,7 +20,7 @@
<% } else { %>
<td><%= link_queue(del.queue.vhost, del.queue.name) %></td>
<% } %>
<td class="r"><%= fmt_deliver_rate(del.stats, col_redeliver) %></td>
<td class="r"><%= fmt_rate(del.stats, 'deliver_get') %></td>
<td class="r"><%= fmt_rate(del.stats, 'ack') %></td>
</tr>
<% } %>