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') . ''; }