diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index ae40d03de3..e73aad9c9b 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -6961,7 +6961,7 @@ function sla_truncate($num, $accurancy=2) * * @param integer $value Value. * @param integer $min Treshold min SLA. - * @param boolean $max Treshold max SLA. + * @param integer $max Treshold max SLA. * @param boolean $inverse_interval Treshold inverse SLA. * * @return boolean Returns the interval in downtime (false if no matches). @@ -14749,8 +14749,10 @@ function reporting_module_histogram_graph($report, $content, $pdf=0) if ($modules_is_string === false) { if ($agentmodule_info['max_critical'] == 0) { $max_value_critical = null; - if ((bool) $content['dinamic_proc'] === true) { - $max_value_critical = 0.01; + if ($agentmodule_info['min_critical'] == 0) { + if ((bool) $content['dinamic_proc'] === true) { + $max_value_critical = 0.01; + } } } else { $max_value_critical = $agentmodule_info['max_critical'];