From f682e5a48a23e3640960856eeebaa8f32cbb19c8 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Mon, 29 Sep 2014 10:14:41 +0200 Subject: [PATCH] Included the max value in the inverse interval. Included the max value in the inverse interval to make it the complementary of the original interval. --- pandora_server/lib/PandoraFMS/Core.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 7405274f9e..c8cb3605a4 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -3452,9 +3452,9 @@ sub get_module_status ($$$) { return 1 if ($data >= $critical_min && $data < $critical_max); return 1 if ($data >= $critical_min && $critical_max < $critical_min); } - # (-inf, critical_min), (critical_max, +inf) + # (-inf, critical_min), [critical_max, +inf) else { - return 1 if ($data < $critical_min || $data > $critical_max); + return 1 if ($data < $critical_min || $data >= $critical_max); return 1 if ($data <= $critical_max && $critical_max < $critical_min); } } @@ -3466,9 +3466,9 @@ sub get_module_status ($$$) { return 2 if ($data >= $warning_min && $data < $warning_max); return 2 if ($data >= $warning_min && $warning_max < $warning_min); } - # (-inf, warning_min), (warning_max, +inf) + # (-inf, warning_min), [warning_max, +inf) 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); } }