mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
Benchmark: hide timestamp on HTML output
Wastes space and is mostly useless, absolut and relative expired time gives more than enough information.
This commit is contained in:
parent
af97db31d7
commit
09412d03b6
@ -142,6 +142,7 @@ class Benchmark
|
|||||||
// TODO: Move formatting to CSS file
|
// TODO: Move formatting to CSS file
|
||||||
$html = '<table class="benchmark">' . "\n" . '<tr>';
|
$html = '<table class="benchmark">' . "\n" . '<tr>';
|
||||||
foreach ($data->columns as & $col) {
|
foreach ($data->columns as & $col) {
|
||||||
|
if ($col->title === 'Time') continue;
|
||||||
$html .= sprintf(
|
$html .= sprintf(
|
||||||
'<td align="%s">%s</td>',
|
'<td align="%s">%s</td>',
|
||||||
$col->align,
|
$col->align,
|
||||||
@ -153,6 +154,7 @@ class Benchmark
|
|||||||
foreach ($data->rows as & $row) {
|
foreach ($data->rows as & $row) {
|
||||||
$html .= '<tr>';
|
$html .= '<tr>';
|
||||||
foreach ($data->columns as $key => & $col) {
|
foreach ($data->columns as $key => & $col) {
|
||||||
|
if ($col->title === 'Time') continue;
|
||||||
$html .= sprintf(
|
$html .= sprintf(
|
||||||
'<td align="%s">%s</td>',
|
'<td align="%s">%s</td>',
|
||||||
$col->align,
|
$col->align,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user