计算精度调整

This commit is contained in:
thinkphp
2016-07-25 17:48:13 +08:00
parent 05f5367c24
commit 0b085eaf54
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ class Console
return false;
}
// 获取基本信息
$runtime = round(microtime(true) - THINK_START_TIME, 20);
$runtime = round(microtime(true) - THINK_START_TIME, 10);
$reqs = number_format(1 / $runtime, 2);
$mem = number_format((memory_get_usage() - THINK_START_MEM) / 1024, 2);

View File

@@ -54,7 +54,7 @@ class File
} else {
$current_uri = "cmd:" . implode(' ', $_SERVER['argv']);
}
$runtime = round(microtime(true) - THINK_START_TIME, 20);
$runtime = round(microtime(true) - THINK_START_TIME, 10);
$reqs = number_format(1 / $runtime, 2);
$time_str = ' [运行时间:' . number_format($runtime, 6) . 's][吞吐率:' . $reqs . 'req/s]';
$memory_use = number_format((memory_get_usage() - THINK_START_MEM) / 1024, 2);