diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-02-18 08:18:51 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-02-18 08:18:51 -0500 |
commit | 80f2220dcd3f0fde3eff9db44f141cafd6d59182 (patch) | |
tree | 444fe67e1676c7d3bb29b9befe32a196174a1ec8 /src/usr/local/www/diag_tables.php | |
parent | 2b0c5a698d6e84734cef7e8ab46bcb4901d771d5 (diff) | |
parent | 37f73a7ca703830cc5b407696e158cc8870f5457 (diff) | |
download | pfsense-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.php | 12 |
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> |