mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Minor improvements (#1206)
This commit is contained in:
parent
bcbc35eb24
commit
b284ff0f08
5 changed files with 442 additions and 64 deletions
|
@ -33,7 +33,7 @@ if (!$bb_cfg['gzip_compress']) {
|
|||
|
||||
if ($show_dbg_info) {
|
||||
$gen_time = utime() - TIMESTART;
|
||||
$gen_time_txt = sprintf('%.3f', $gen_time);
|
||||
$gen_time_txt = sprintf('%.4f', $gen_time);
|
||||
$gzip_text = UA_GZIP_SUPPORTED ? "{$lang['GZIP_COMPRESSION']}: " : "<s>{$lang['GZIP_COMPRESSION']}:</s> ";
|
||||
$gzip_text .= $bb_cfg['gzip_compress'] ? $lang['ON'] : $lang['OFF'];
|
||||
|
||||
|
@ -41,7 +41,7 @@ if ($show_dbg_info) {
|
|||
|
||||
if (!empty($DBS)) {
|
||||
$sql_t = $DBS->sql_timetotal;
|
||||
$sql_time_txt = ($sql_t) ? sprintf('%.3f ' . $lang['SEC'] . ' (%d%%) · ', $sql_t, round($sql_t * 100 / $gen_time)) : '';
|
||||
$sql_time_txt = ($sql_t) ? 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'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue