mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #2669 from NOYB/Diagnostics_/_Tables_-_Large_Tables_Perf_Band-Aid
This commit is contained in:
commit
80f2220dcd
@ -229,6 +229,17 @@ if (empty($entries)) {
|
||||
</tr>
|
||||
</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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user