|
@@ -1346,8 +1346,8 @@ if (!colors['2500']) colors['2500'] = '#17C3B2';
|
|
|
var bg = p.role === 'core' ? TIER_BG.core : (p.role === 'main' ? '#2E75B6' : (p.role === 'dist' ? TIER_BG.dist : TIER_BG.access));
|
|
var bg = p.role === 'core' ? TIER_BG.core : (p.role === 'main' ? '#2E75B6' : (p.role === 'dist' ? TIER_BG.dist : TIER_BG.access));
|
|
|
var bd = bg;
|
|
var bd = bg;
|
|
|
// Alarm and offline are node-level states: fill the whole node red.
|
|
// Alarm and offline are node-level states: fill the whole node red.
|
|
|
- // Only latency > LATB is allowed to draw a red frame; 3-5 ms uses an
|
|
|
|
|
- // orange frame. Alarm must never be represented by a red border alone.
|
|
|
|
|
|
|
+ // Only latency > LATB is allowed to draw a red frame; LATW..LATB uses
|
|
|
|
|
+ // an orange frame. Alarm must never be represented by a red border alone.
|
|
|
if (n.alarms && n.alarms.length) { cls.push('alarm'); bg = '#E45959'; bd = '#E45959'; }
|
|
if (n.alarms && n.alarms.length) { cls.push('alarm'); bg = '#E45959'; bd = '#E45959'; }
|
|
|
if (n.offline || n.oper === 'down') { cls.push('offline'); bg = '#C0392B'; bd = '#C0392B'; }
|
|
if (n.offline || n.oper === 'down') { cls.push('offline'); bg = '#C0392B'; bd = '#C0392B'; }
|
|
|
// Alarm/offline already owns the whole fill; do not put a latency frame
|
|
// Alarm/offline already owns the whole fill; do not put a latency frame
|