From d2da2b68f570fdea570dedfed5207b21e67cef68 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Thu, 2 Mar 2023 19:14:10 +0300 Subject: [PATCH] Update Memory.php --- src/Services/Memory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Memory.php b/src/Services/Memory.php index 6bfe735..5dbe90d 100644 --- a/src/Services/Memory.php +++ b/src/Services/Memory.php @@ -14,7 +14,7 @@ class Memory public function now(): int { - return memory_get_usage(true); + return memory_get_peak_usage(true); } public function diff(int $memory): int