mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-03-01 15:21:02 +03:00
Update functions_dev.php
This commit is contained in:
parent
7af31b4148
commit
521cab7243
@ -47,7 +47,7 @@ function get_sql_log_html ($db_obj, $log_name)
|
|||||||
{
|
{
|
||||||
$id = "sql_{$i}_". mt_rand();
|
$id = "sql_{$i}_". mt_rand();
|
||||||
$sql = short_query($dbg['sql'], true);
|
$sql = short_query($dbg['sql'], true);
|
||||||
$time = SQL_CALC_QUERY_TIME ? sprintf('%.4f', $dbg['time']) : '';
|
$time = SQL_CALC_QUERY_TIME ? (sprintf('%.4f', $dbg['time']) . 's') : '';
|
||||||
$perc = SQL_CALC_QUERY_TIME ? @sprintf('[%d%%]', round($dbg['time']*100/$db_obj->sql_timetotal)) : '';
|
$perc = SQL_CALC_QUERY_TIME ? @sprintf('[%d%%]', round($dbg['time']*100/$db_obj->sql_timetotal)) : '';
|
||||||
$info = !empty($dbg['info']) ? $dbg['info'] .' ['. $dbg['src'] .']' : $dbg['src'];
|
$info = !empty($dbg['info']) ? $dbg['info'] .' ['. $dbg['src'] .']' : $dbg['src'];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user