From 80a7266fa5674fd6606c207e72d583e459e72231 Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 30 Dec 2016 11:14:53 +0100 Subject: [PATCH] fixed errors open interval graph gauge --- pandora_console/include/graphs/pandora.d3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/graphs/pandora.d3.js b/pandora_console/include/graphs/pandora.d3.js index b0d2ea58fc..99bfc6c496 100644 --- a/pandora_console/include/graphs/pandora.d3.js +++ b/pandora_console/include/graphs/pandora.d3.js @@ -881,10 +881,10 @@ 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 !== false) { - if ( min_warning > 0 ) { + if ( min_warning >= 0 ) { config.yellowZones = [{ from: min_warning, to: max_warning }]; } - if ( min_critical > 0 ) { + if ( min_critical >= 0 ) { config.redZones = [{ from: min_critical, to: max_critical }]; } }