Added data precision to some items in custom reports
(cherry picked from commit 8263823e45
)
This commit is contained in:
parent
ebbba31d57
commit
cb1403a55c
|
@ -364,13 +364,13 @@ function reporting_html_SLA($table, $item, $mini) {
|
||||||
}
|
}
|
||||||
elseif ($sla['sla_status']) {
|
elseif ($sla['sla_status']) {
|
||||||
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_NORMAL.';">' .
|
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_NORMAL.';">' .
|
||||||
round($sla['sla_value'], 2) . "%" . '</span>';
|
remove_right_zeros(number_format($sla['sla_value'], $config['graph_precision'])) . "%" . '</span>';
|
||||||
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_NORMAL.';">' .
|
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_NORMAL.';">' .
|
||||||
__('OK') . '</span>';
|
__('OK') . '</span>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_CRITICAL.';">' .
|
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_CRITICAL.';">' .
|
||||||
round($sla['sla_value'], 2) . "%" . '</span>';
|
remove_right_zeros(number_format($sla['sla_value'], $config['graph_precision'])) . "%" . '</span>';
|
||||||
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_CRITICAL.';">' .
|
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_CRITICAL.';">' .
|
||||||
__('Fail') . '</span>';
|
__('Fail') . '</span>';
|
||||||
}
|
}
|
||||||
|
@ -391,13 +391,13 @@ function reporting_html_SLA($table, $item, $mini) {
|
||||||
}
|
}
|
||||||
elseif ($sla['sla_status']) {
|
elseif ($sla['sla_status']) {
|
||||||
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_NORMAL.';">' .
|
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_NORMAL.';">' .
|
||||||
round($sla['sla_value'], 2) . "%" . '</span>';
|
remove_right_zeros(number_format($sla['sla_value'], $config['graph_precision'])) . "%" . '</span>';
|
||||||
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_NORMAL.';">' .
|
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_NORMAL.';">' .
|
||||||
__('OK') . '</span>';
|
__('OK') . '</span>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_CRITICAL.';">' .
|
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_CRITICAL.';">' .
|
||||||
round($sla['sla_value'], 2) . "%" . '</span>';
|
remove_right_zeros(number_format($sla['sla_value'], $config['graph_precision'])) . "%" . '</span>';
|
||||||
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_CRITICAL.';">' .
|
$row[] = '<span style="font: bold '.$font_size.'em Arial, Sans-serif; color: '.COL_CRITICAL.';">' .
|
||||||
__('Fail') . '</span>';
|
__('Fail') . '</span>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue