Merge branch 'ent-9078-Gráfica-de-estados-de-módulos' into 'develop'

Ent 9078 gráfica de estados de módulos

See merge request artica/pandorafms!4924
This commit is contained in:
Daniel Rodriguez 2022-06-07 10:46:18 +00:00
commit b962afe56d
1 changed files with 5 additions and 3 deletions

View File

@ -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,9 +14749,11 @@ 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 ($agentmodule_info['min_critical'] == 0) {
if ((bool) $content['dinamic_proc'] === true) {
$max_value_critical = 0.01;
}
}
} else {
$max_value_critical = $agentmodule_info['max_critical'];
}