Fixed N/A warning or critical in module graphs TICKETS #3392

This commit is contained in:
fermin831 2016-04-04 19:00:35 +02:00
parent 451cb84606
commit 8a63ef220e
1 changed files with 4 additions and 0 deletions

View File

@ -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