From 9ce67562210a1d63a5fbe29dc7e21193109d0918 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 22 Oct 2023 21:08:25 +0700 Subject: [PATCH] Update functions_dev.php --- library/includes/functions_dev.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/includes/functions_dev.php b/library/includes/functions_dev.php index 6f1ba13c..febcd752 100644 --- a/library/includes/functions_dev.php +++ b/library/includes/functions_dev.php @@ -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 .= ''