summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/diag_tables.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php
index 46512ed..9b8bd11 100644
--- a/src/usr/local/www/diag_tables.php
+++ b/src/usr/local/www/diag_tables.php
@@ -230,6 +230,17 @@ if (empty($entries)) {
</thead>
<tbody>
<?php
+ // This is a band-aid for a yet to be root caused performance issue with large tables. Suspected is css and/or sorting.
+ if (count($entries) > 3000) {
+ print "<tr><td colspan='2'><pre>";
+ foreach ($entries as $entry) {
+ $entry = trim($entry);
+ print $entry . "\n";
+ }
+ print "</pre></td></tr>";
+ } else {
+?>
+<?php
foreach ($entries as $entry):
$entry = trim($entry);
?>
@@ -244,6 +255,7 @@ if (empty($entries)) {
</td>
</tr>
<?php endforeach ?>
+<?php } ?>
</tbody>
</table>
</div>
OpenPOWER on IntegriCloud