It's "resource" now, not "mem".

This commit is contained in:
Simon MacMullen 2012-09-24 12:44:21 +01:00
parent 428065835f
commit c2a1d19eb9
1 changed files with 3 additions and 3 deletions

View File

@ -378,13 +378,13 @@ function fmt_connection_state(conn) {
var text = conn.state;
var explanation;
if (conn.last_blocked_by == 'mem' && conn.state == 'blocked') {
if (conn.last_blocked_by == 'resource' && conn.state == 'blocked') {
colour = 'red';
explanation = 'Memory alarm: Connection blocked.';
explanation = 'Resource alarm: Connection blocked.';
}
else if (conn.state == 'blocking') {
colour = 'yellow';
explanation = 'Memory alarm: Connection will block on publish.';
explanation = 'Resource alarm: Connection will block on publish.';
}
else if (conn.last_blocked_by == 'flow') {
var age = conn.last_blocked_age.toFixed();