* [trace] add number_format.
This commit is contained in:
@@ -85,11 +85,10 @@ class trace
|
||||
/* 达梦数据库不支持下面的语法,直接跳过。The */
|
||||
if($config->db->driver === 'dm') return;
|
||||
|
||||
ini_set('serialize_precision', 14);
|
||||
ini_set('precision', 14);
|
||||
|
||||
$profiling = $this->dao->dbh->query('SHOW PROFILES')->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
foreach($profiling as $key => $profile) $profiling[$key]['Duration'] = number_format($profile['Duration'], 4);
|
||||
|
||||
$this->trace['profiles'] = $profiling;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user