From cb1403a55ce2bf277883c40b74ad48d32fde916f Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Fri, 28 Oct 2016 13:42:33 +0200 Subject: [PATCH] Added data precision to some items in custom reports (cherry picked from commit 8263823e4523b845a891104ea0717be4987f1992) --- pandora_console/include/functions_reporting_html.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index 5f10a5b4ac..0af4c1ed13 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -364,13 +364,13 @@ function reporting_html_SLA($table, $item, $mini) { } elseif ($sla['sla_status']) { $row[] = '' . - round($sla['sla_value'], 2) . "%" . ''; + remove_right_zeros(number_format($sla['sla_value'], $config['graph_precision'])) . "%" . ''; $row[] = '' . __('OK') . ''; } else { $row[] = '' . - round($sla['sla_value'], 2) . "%" . ''; + remove_right_zeros(number_format($sla['sla_value'], $config['graph_precision'])) . "%" . ''; $row[] = '' . __('Fail') . ''; } @@ -391,13 +391,13 @@ function reporting_html_SLA($table, $item, $mini) { } elseif ($sla['sla_status']) { $row[] = '' . - round($sla['sla_value'], 2) . "%" . ''; + remove_right_zeros(number_format($sla['sla_value'], $config['graph_precision'])) . "%" . ''; $row[] = '' . __('OK') . ''; } else { $row[] = '' . - round($sla['sla_value'], 2) . "%" . ''; + remove_right_zeros(number_format($sla['sla_value'], $config['graph_precision'])) . "%" . ''; $row[] = '' . __('Fail') . ''; }