monitoring: Fix performance data table markup, #2

refs #5543
This commit is contained in:
Eric Lippmann 2015-11-11 15:20:24 +01:00
parent dbec2741f9
commit 2b0cb344da

View File

@ -61,7 +61,7 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
$headers[$column] = $labels[$column]; $headers[$column] = $labels[$column];
} }
} }
$table = array('<thead><tr><th>' . implode('</th><th>', $headers) . '</th></tr></thead>'); $table = array('<thead><tr><th>' . implode('</th><th>', $headers) . '</th></tr></thead><tbody>');
foreach ($pieChartData as $perfdata) { foreach ($pieChartData as $perfdata) {
if ($compact && $perfdata->isVisualizable()) { if ($compact && $perfdata->isVisualizable()) {
$results[] = $perfdata->asInlinePie($color)->render(); $results[] = $perfdata->asInlinePie($color)->render();
@ -85,9 +85,10 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
); );
} }
} }
$table []= '<tbody><tr><td class="sparkline-col">' . implode('</td><td>', $data) . '</td></tr></tbody>'; $table []= '<tr><td class="sparkline-col">' . implode('</td><td>', $data) . '</td></tr>';
} }
} }
$table[] = '</tbody>';
if ($limit > 0) { if ($limit > 0) {
$count = $compact ? count($results) : count($table); $count = $compact ? count($results) : count($table);
if ($count > $limit) { if ($count > $limit) {