Fixed extra decimal positions in availability report: external ticket: 2626

This commit is contained in:
fbsanchez 2016-01-21 11:14:15 +01:00
parent b218f94123
commit c24b2c07db
1 changed files with 2 additions and 2 deletions

View File

@ -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);