Fixed benchmark log
authorAlexander Ebert <ebert@woltlab.com>
Fri, 25 Nov 2011 14:43:37 +0000 (15:43 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 25 Nov 2011 14:43:37 +0000 (15:43 +0100)
com.woltlab.wcf/template/footer.tpl

index 51ca1ca5a951e59e05efb9ee50a81b9a96fc616a..c1d82a781733855d995b5eefc04154b8867f0597 100644 (file)
@@ -14,7 +14,7 @@
                
                <p style="margin-top: 10px; font-size: .85em" id="benchmark">Execution time: {@$__wcf->getBenchmark()->getExecutionTime()}s ({#($__wcf->getBenchmark()->getExecutionTime()-$__wcf->getBenchmark()->getQueryExecutionTime())/$__wcf->getBenchmark()->getExecutionTime()*100}% PHP, {#$__wcf->getBenchmark()->getQueryExecutionTime()/$__wcf->getBenchmark()->getExecutionTime()*100}% SQL) | SQL queries: {#$__wcf->getBenchmark()->getQueryCount()}</p>
                
-               <ul id="benchmarkDetails" style="display: none; max-height: 500px; overflow: auto">
+               <ul id="benchmarkDetails" style="display: none;">
                        {foreach from=$__wcf->getBenchmark()->getItems() item=item}
                                <li style="margin-bottom: 8px;{if $item.use >= 0.01} color: #b00{/if}">{if $item.type == 1}(SQL Query) {/if}{$item.text}<br /><small style="font-size: .85em">Execution time: {@$item.use}s</small></li>
                        {/foreach}
@@ -24,7 +24,9 @@
                        //<![CDATA[
                        $(function() {
                                $('#benchmark').click(function() {
-                                       WCF.showDialog('benchmarkDetails', true);
+                                       WCF.showDialog('benchmarkDetails', true, {
+                                               title: 'Log'
+                                       });
                                        return false;
                                });
                        });
@@ -35,4 +37,4 @@
        </footer>
        <!-- /FOOTER -->
        <a id="bottom"></a>
-       
\ No newline at end of file
+