From 0218f07a54e8ce0e73b2e03072eaffc2745568ea Mon Sep 17 00:00:00 2001 From: liugang Date: Wed, 27 Aug 2025 15:48:41 +0800 Subject: [PATCH] * [refac] Keep 6 decimal places. --- lib/dbh/dbh.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dbh/dbh.class.php b/lib/dbh/dbh.class.php index ed8fdbee8d..db48f0fac6 100644 --- a/lib/dbh/dbh.class.php +++ b/lib/dbh/dbh.class.php @@ -159,7 +159,7 @@ class dbh { dbh::$flags[] = $flag; dbh::$queries[] = $query; - dbh::$durations[] = number_format($duration * 1000, 2) . ' ms'; + dbh::$durations[] = round($duration, 6); if(!empty($config->debug)) dbh::$traces[] = 'vim +' . (__LINE__ - 12) . ' ' . __FILE__; } } @@ -256,7 +256,7 @@ class dbh { dbh::$flags[] = $this->flag; dbh::$queries[] = dao::processKeywords($sql); - dbh::$durations[] = number_format($duration * 1000, 2) . ' ms'; + dbh::$durations[] = round($duration, 6); if(!empty($this->config->debug)) {