summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_tables.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-02-18 08:18:51 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-02-18 08:18:51 -0500
commit80f2220dcd3f0fde3eff9db44f141cafd6d59182 (patch)
tree444fe67e1676c7d3bb29b9befe32a196174a1ec8 /src/usr/local/www/diag_tables.php
parent2b0c5a698d6e84734cef7e8ab46bcb4901d771d5 (diff)
parent37f73a7ca703830cc5b407696e158cc8870f5457 (diff)
downloadpfsense-80f2220dcd3f0fde3eff9db44f141cafd6d59182.zip
pfsense-80f2220dcd3f0fde3eff9db44f141cafd6d59182.tar.gz
Merge pull request #2669 from NOYB/Diagnostics_/_Tables_-_Large_Tables_Perf_Band-Aid
Diffstat (limited to 'src/usr/local/www/diag_tables.php')
-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