This upgrade will fix the negative values some users get when loading a page.
CREDITS:
JDD
pagestarttime addon in [high]global.php[/high]
VB2.2.4 forum/global.php (2 changes)
1. Find the code:
PHP Code:
if (isset($showqueries)) {
$pagestarttime=microtime();
}
Replace it with:
PHP Code:
$pagestarttime=microtime();
2. Find the code:
PHP Code:
$templatesused.=',pagenav,pagenav_curpage,pagenav_firstlink,pagenav_lastlink,pagenav_nextlink,pagenav_pagelink,pagenav_prevlink';
Replace it with:
PHP Code:
$templatesused.=',pagenav,pagenav_curpage,pagenav_firstlink,pagenav_lastlink,pagenav_nextlink,pagenav_pagelink,pagenav_prevlink,home_microstats';
forum/admin/functions.php (1 change)
1. Find the code:
PHP Code:
$totaltime=$endtime[0]-$starttime[0];
Replace it with:
PHP Code:
$totaltime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];