From 0b085eaf54e4975c2090064ffbcca201352de979 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 25 Jul 2016 17:48:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E7=B2=BE=E5=BA=A6=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/debug/Console.php | 2 +- library/think/log/driver/File.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/debug/Console.php b/library/think/debug/Console.php index f938dd2f..62adb51f 100644 --- a/library/think/debug/Console.php +++ b/library/think/debug/Console.php @@ -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); diff --git a/library/think/log/driver/File.php b/library/think/log/driver/File.php index 4d4abfe2..3586bec0 100644 --- a/library/think/log/driver/File.php +++ b/library/think/log/driver/File.php @@ -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);