From 4ed323900fc2c0431bb8c6740f6cf915a5d7ac4f Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Mon, 31 Oct 2016 10:09:30 +0100 Subject: [PATCH] Data precision, added changes to availability reports --- pandora_console/include/functions_reporting.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index ab7d1d3cc2..866c775f87 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -3875,13 +3875,13 @@ function reporting_availability($report, $content, $date=false, $time=false) { $percent_ok = 0; } else { - $percent_ok = format_numeric($sla_value, 2); + $percent_ok = $sla_value; $percent_fail = (100 - $percent_ok); $row['checks'] = format_numeric($count_checks, 0); - $row['ok'] = format_numeric($percent_ok,2) . " %"; + $row['ok'] = $percent_ok . " %"; $row['order'] = $percent_ok; - $row['fail'] = format_numeric($percent_fail,2) . " %"; + $row['fail'] = $percent_fail . " %"; //$row['failed'] = format_numeric($percent_fail * $count_checks / 100, 0); //if the value of time in failures is less than those recorded in the database the number of errors that have registered in the database is set