Merge branch '3021-SLA-vista-descolocada' into 'develop'

Removed duplicated code - #3021

See merge request artica/pandorafms!1933
This commit is contained in:
vgilc 2018-11-06 15:22:33 +01:00
commit 78c88c4f8f
1 changed files with 2 additions and 10 deletions

View File

@ -480,8 +480,8 @@ function reporting_html_SLA($table, $item, $mini) {
$row[] = $sla['module'];
if(is_numeric($sla['dinamic_text'])){
$row[] = sla_truncate($sla['max'], $config['graph_precision']) . " / " .
sla_truncate($sla['min'], $config['graph_precision']);
$row[] = sla_truncate($sla['max'], $config['graph_precision']) . " / " .
sla_truncate($sla['min'], $config['graph_precision']);
}
else{
$row[] = $sla['dinamic_text'];
@ -489,14 +489,6 @@ function reporting_html_SLA($table, $item, $mini) {
$row[] = round($sla['sla_limit'], 2) . "%";
if (!$hide_notinit_agent) {
if(is_numeric($sla['dinamic_text'])){
$row[] = sla_truncate($sla['max'], $config['graph_precision']) . " / " .
sla_truncate($sla['min'], $config['graph_precision']);
}
else{
$row[] = $sla['dinamic_text'];
}
$row[] = round($sla['sla_limit'], 2) . "%";
if (reporting_sla_is_not_init_from_array($sla)) {
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_NOTINIT.';">' .