Update page_footer.php

This commit is contained in:
Roman Kelesidis 2023-12-14 18:25:16 +07:00
parent 4214b5cfad
commit 8ec6ed6abb

View File

@ -38,7 +38,7 @@ if ($show_dbg_info)
if (!empty($DBS))
{
$sql_t = $DBS->sql_timetotal;
$sql_time_txt = ($sql_t && SQL_CALC_QUERY_TIME) ? sprintf('%.3f '.$lang['SEC'].' (%d%%) · ', $sql_t, round($sql_t*100/$gen_time)) : '';
$sql_time_txt = ($sql_t && SQL_CALC_QUERY_TIME) ? sprintf('%.4f '.$lang['SEC'].' (%d%%) · ', $sql_t, round($sql_t*100/$gen_time)) : '';
$num_q = $DBS->num_queries;
$stat .= "  |  {$DBS->get_db_obj()->engine}: {$sql_time_txt}{$num_q} " . $lang['QUERIES'];
}