From c24b2c07dbb97ef559f8519cf7c4956e791d14d3 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 21 Jan 2016 11:14:15 +0100 Subject: [PATCH] Fixed extra decimal positions in availability report: external ticket: 2626 --- pandora_console/include/functions_reporting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 6f9e71b874..43281dfad8 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -3871,9 +3871,9 @@ function reporting_availability($report, $content) { $percent_fail = (100 - $percent_ok); $row['checks'] = format_numeric($count_checks, 0); - $row['ok'] = $percent_ok . " %"; + $row['ok'] = format_numeric($percent_ok,2) . " %"; $row['order'] = $percent_ok; - $row['fail'] = $percent_fail . " %"; + $row['fail'] = format_numeric($percent_fail,2) . " %"; $row['failed'] = format_numeric($percent_fail * $count_checks / 100, 0);