改进trace显示

This commit is contained in:
thinkphp
2018-03-02 10:49:14 +08:00
parent 69fc7cd6bc
commit 47f79024fc

View File

@@ -53,7 +53,7 @@ class Html
return false;
}
// 获取基本信息
$runtime = number_format(microtime(true) - THINK_START_TIME, 10);
$runtime = number_format(microtime(true) - THINK_START_TIME, 10, '.', '');
$reqs = $runtime > 0 ? number_format(1 / $runtime, 2) : '∞';
$mem = number_format((memory_get_usage() - THINK_START_MEM) / 1024, 2);