Update functions_dev.php

This commit is contained in:
Roman Kelesidis 2023-10-22 21:08:25 +07:00
parent 9d90d7f155
commit 9ce6756221

View File

@ -48,7 +48,7 @@ function get_sql_log_html ($db_obj, $log_name)
$id = "sql_{$i}_". mt_rand();
$sql = short_query($dbg['sql'], true);
$time = sprintf('%.4f', $dbg['time']);
$perc = @sprintf('[%2d]', $dbg['time']*100/$db_obj->sql_timetotal);
$perc = @sprintf('[%d%%]', round($dbg['time']*100/$db_obj->sql_timetotal));
$info = !empty($dbg['info']) ? $dbg['info'] .' ['. $dbg['src'] .']' : $dbg['src'];
$log .= ''