mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
修正debug类的getUserMem方法
This commit is contained in:
@@ -104,7 +104,7 @@ class Debug
|
|||||||
*/
|
*/
|
||||||
public static function getUseMem($dec = 2)
|
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'];
|
$a = ['B', 'KB', 'MB', 'GB', 'TB'];
|
||||||
$pos = 0;
|
$pos = 0;
|
||||||
while ($size >= 1024) {
|
while ($size >= 1024) {
|
||||||
|
|||||||
Reference in New Issue
Block a user