Merge branch 'ent-7841-siguen-fallando-intervalos-inversos' into 'develop'
Fixed issue with inversed intervals Closes pandora_enterprise#7841 See merge request artica/pandorafms!4321
This commit is contained in:
commit
b517d64b87
|
@ -4702,9 +4702,9 @@ sub get_module_status ($$$) {
|
||||||
# (-inf, warning_min), [warning_max, +inf)
|
# (-inf, warning_min), [warning_max, +inf)
|
||||||
else {
|
else {
|
||||||
if ($warning_min == 0) {
|
if ($warning_min == 0) {
|
||||||
return 1 if ($data > $warning_max);
|
return 2 if ($data > $warning_max);
|
||||||
}elsif ($warning_max == 0) {
|
}elsif ($warning_max == 0) {
|
||||||
return 1 if ($data <= $warning_min);
|
return 2 if ($data <= $warning_min);
|
||||||
} else {
|
} else {
|
||||||
return 2 if ($data < $warning_min || $data >= $warning_max);
|
return 2 if ($data < $warning_min || $data >= $warning_max);
|
||||||
return 2 if ($data <= $warning_max && $warning_max < $warning_min);
|
return 2 if ($data <= $warning_max && $warning_max < $warning_min);
|
||||||
|
|
Loading…
Reference in New Issue