diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 0a21215921..691d6ee3b0 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -3789,8 +3789,6 @@ function reporting_availability($report, $content, $date=false, $time=false) { else { $items = $content['subitems']; } - - $data = array(); @@ -3826,8 +3824,6 @@ function reporting_availability($report, $content, $date=false, $time=false) { } } - - if (modules_is_disable_agent($item['id_agent_module']) || modules_is_not_init($item['id_agent_module'])) { //Restore dbconnection @@ -3890,13 +3886,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