Skip to content
Snippets Groups Projects
Commit c83bce26 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Do not show time if start time was not calculated

parent 0690e8c3
No related branches found
No related tags found
No related merge requests found
......@@ -4325,12 +4325,15 @@ function printCommonFooter($zone='private')
// End of tuning
if (! empty($_SERVER['DOL_TUNING']) || ! empty($conf->global->MAIN_SHOW_TUNING_INFO))
{
$micro_end_time=dol_microtime_float(true);
print "\n".'<script type="text/javascript">'."\n";
print 'window.console && console.log("';
if (! empty($conf->global->MEMCACHED_SERVER)) print 'MEMCACHED_SERVER='.$conf->global->MEMCACHED_SERVER.' - ';
print 'MAIN_OPTIMIZE_SPEED='.(isset($conf->global->MAIN_OPTIMIZE_SPEED)?$conf->global->MAIN_OPTIMIZE_SPEED:'off');
if ($micro_start_time)
{
$micro_end_time=dol_microtime_float(true);
print ' - Build time: '.ceil(1000*($micro_end_time-$micro_start_time)).' ms';
}
if (function_exists("memory_get_usage"))
{
print ' - Mem: '.memory_get_usage();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment