Skip to content

Commit

Permalink
Update Memory.php
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar authored Mar 2, 2023
1 parent f351020 commit d2da2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2da2b6

Please sign in to comment.