From 82b34dc84774deca79204ea9592c4a055903e4aa Mon Sep 17 00:00:00 2001 From: fermin831 Date: Mon, 4 Apr 2016 19:00:35 +0200 Subject: [PATCH] Fixed N/A warning or critical in module graphs TICKETS #3392 --- pandora_console/include/graphs/flot/pandora.flot.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index f8aed50e04..cfdc6edbcb 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -954,6 +954,10 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend, // showed[i] = true; } + // If threshold and up are the same, that critical or warning is disabled + if (yellow_threshold == yellow_up) yellow_inverse = false; + if (red_threshold == red_up) red_inverse = false; + //Array with points to be painted var threshold_data = new Array(); //Array with some interesting points