aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-22 23:09:21 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-22 23:09:21 +0200
commitde04304e94c428afd6dcb9f42b215ebbb6cc14d2 (patch)
treea0e18e6473a437dc6a779c40936077eb0c1efbfb /phpBB/includes/functions.php
parentd3b3e9265c23be4f0ad185820e8fb195209c2abc (diff)
parentf850d5fa90584bb73ef1a77fd21f825e1d0794ed (diff)
downloadforums-de04304e94c428afd6dcb9f42b215ebbb6cc14d2.tar
forums-de04304e94c428afd6dcb9f42b215ebbb6cc14d2.tar.gz
forums-de04304e94c428afd6dcb9f42b215ebbb6cc14d2.tar.bz2
forums-de04304e94c428afd6dcb9f42b215ebbb6cc14d2.tar.xz
forums-de04304e94c428afd6dcb9f42b215ebbb6cc14d2.zip
Merge pull request #2591 from rxu/ticket/12704
[ticket/12704] Improve the load time information in the footer when enabled * rxu/ticket/12704: [ticket/12704] Improve the load time information in the footer when enabled
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 3d0a4761f3..32acb0c9ff 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -5064,10 +5064,10 @@ function phpbb_generate_debug_output(phpbb\db\driver\driver_interface $db, \phpb
if (isset($GLOBALS['starttime']))
{
$totaltime = microtime(true) - $GLOBALS['starttime'];
- $debug_info[] = sprintf('Time: %.3fs', $totaltime);
+ $debug_info[] = sprintf('<abbr title="SQL time: %.3fs / PHP time: %.3fs">Time: %.3fs</abbr>', $db->sql_time, ($totaltime - $db->sql_time), $totaltime);
}
- $debug_info[] = $db->sql_num_queries() . ' Queries (' . $db->sql_num_queries(true) . ' cached)';
+ $debug_info[] = sprintf('<abbr title="Cached: %d">Queries: %d</abbr>', $db->sql_num_queries(true), $db->sql_num_queries());
$memory_usage = memory_get_peak_usage();
if ($memory_usage)