From 1c38198a3b78bcb6ad99a76a16b260d28bde5e9d Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 1 Jul 2016 14:08:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3debug=E7=B1=BB=E7=9A=84getUse?= =?UTF-8?q?rMem=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Debug.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Debug.php b/library/think/Debug.php index 1c0d12a4..05695400 100644 --- a/library/think/Debug.php +++ b/library/think/Debug.php @@ -104,7 +104,7 @@ class Debug */ public static function getUseMem($dec = 2) { - $size = memory_get_usage() - START_MEM; + $size = memory_get_usage() - THINK_START_MEM; $a = ['B', 'KB', 'MB', 'GB', 'TB']; $pos = 0; while ($size >= 1024) {