Just strip this out; I suspect no one in the world cares but if they do we can bring it back with +/- columns.
This commit is contained in:
parent
74ccb09949
commit
2cb532efec
|
|
@ -303,25 +303,6 @@ function fmt_rate_bytes_axis(num, max) {
|
||||||
return fmt_bytes_axis(num, max) + '/s';
|
return fmt_bytes_axis(num, max) + '/s';
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_stat_empty(obj, name) {
|
|
||||||
if (obj == undefined
|
|
||||||
|| obj[name] == undefined
|
|
||||||
|| obj[name + '_details'] == undefined
|
|
||||||
|| obj[name + '_details'].rate < 0.00001) return true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function is_col_empty(objects, name, accessor) {
|
|
||||||
if (accessor == undefined) accessor = function(o) {return o.message_stats;};
|
|
||||||
for (var i = 0; i < objects.length; i++) {
|
|
||||||
var object = objects[i];
|
|
||||||
if (!is_stat_empty(accessor(object), name)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function fmt_maybe_vhost(name) {
|
function fmt_maybe_vhost(name) {
|
||||||
return vhosts_interesting ?
|
return vhosts_interesting ?
|
||||||
' in virtual host <b>' + fmt_escape_html(name) + '</b>'
|
' in virtual host <b>' + fmt_escape_html(name) + '</b>'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
<h3><%= label %></h3>
|
<h3><%= label %></h3>
|
||||||
<% if (object && object.length > 0) { %>
|
<% if (object && object.length > 0) { %>
|
||||||
<%
|
<%
|
||||||
var col_return_unroutable = !is_col_empty(object, 'return_unroutable', function(o) {return o.stats;});
|
|
||||||
var col_confirm = mode != 'exchange-outgoing';
|
var col_confirm = mode != 'exchange-outgoing';
|
||||||
%>
|
%>
|
||||||
<table class="list">
|
<table class="list">
|
||||||
|
|
@ -18,9 +17,6 @@
|
||||||
<th>publish</th>
|
<th>publish</th>
|
||||||
<% if (col_confirm) { %>
|
<% if (col_confirm) { %>
|
||||||
<th>confirm</th>
|
<th>confirm</th>
|
||||||
<% } %>
|
|
||||||
<% if (col_return_unroutable) { %>
|
|
||||||
<th>return (mandatory)</th>
|
|
||||||
<% } %>
|
<% } %>
|
||||||
</tr>
|
</tr>
|
||||||
<%
|
<%
|
||||||
|
|
@ -41,9 +37,6 @@
|
||||||
<td class="r"><%= fmt_rate(pub.stats, 'publish') %></td>
|
<td class="r"><%= fmt_rate(pub.stats, 'publish') %></td>
|
||||||
<% if (col_confirm) { %>
|
<% if (col_confirm) { %>
|
||||||
<td class="r"><%= fmt_rate(pub.stats, 'confirm') %></td>
|
<td class="r"><%= fmt_rate(pub.stats, 'confirm') %></td>
|
||||||
<% } %>
|
|
||||||
<% if (col_return_unroutable) { %>
|
|
||||||
<td class="r"><%= fmt_rate(pub.stats, 'return_unroutable') %></td>
|
|
||||||
<% } %>
|
<% } %>
|
||||||
</tr>
|
</tr>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue