From da3de006df290bcaaca54766e0ddcd452de03765 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Fri, 18 Dec 2015 11:17:21 +0100 Subject: [PATCH] Fixed problems with draw min warning and critical state of gauges. Tiquet: #3058 (cherry picked from commit 9b634445612851050e33fad350bea76f5c82f2af) --- pandora_console/include/graphs/pandora.d3.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pandora_console/include/graphs/pandora.d3.js b/pandora_console/include/graphs/pandora.d3.js index f79d0c2f94..866e66aae6 100644 --- a/pandora_console/include/graphs/pandora.d3.js +++ b/pandora_console/include/graphs/pandora.d3.js @@ -880,14 +880,14 @@ function createGauge(name, etiqueta, value, min, max, min_warning,max_warning,mi //var range = config.max - config.min; var range = config.max - config.min; - if (value >= min_warning){ - if ( min_warning > 0 ) { - config.yellowZones = [{ from: min_warning, to: max_warning }]; - } - if ( min_critical > 0 ) { - config.redZones = [{ from: min_critical, to: max_critical }]; - } + + if ( min_warning > 0 ) { + config.yellowZones = [{ from: min_warning, to: max_warning }]; } + if ( min_critical > 0 ) { + config.redZones = [{ from: min_critical, to: max_critical }]; + } + gauges = new Gauge(name, config); gauges.render(); gauges.redraw(value);