diff --git a/lib/trace/trace.class.php b/lib/trace/trace.class.php index 78d26b1671..c351d3895b 100644 --- a/lib/trace/trace.class.php +++ b/lib/trace/trace.class.php @@ -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; }