Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e4fe1a

Browse files
committed
set a GB memory limit function
1 parent cc1ab34 commit 4e4fe1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Commands/Queue/Work.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ protected function getMemoryLimit()
180180

181181
switch($matches[2])
182182
{
183+
case 'G' :
184+
$memoryLimit = $matches[1] * 1024 * 1024 * 1024;
185+
break;
183186
case 'M' :
184187
$memoryLimit = $matches[1] * 1024 * 1024;
185188
break;

0 commit comments

Comments
 (0)