Merge pull request #1729 from GPCsolutions/gig

Support gigaoctets of session memory
This commit is contained in:
Laurent Destailleur 2014-07-11 12:20:08 +02:00
commit 9b35e0985f

View File

@ -152,6 +152,7 @@ if ($memmaxorig != '')
preg_match('/([0-9]+)([a-zA-Z]*)/i',$memmax,$reg);
if ($reg[2])
{
if (strtoupper($reg[2]) == 'G') $memmax=$reg[1]*1024*1024*1024;
if (strtoupper($reg[2]) == 'M') $memmax=$reg[1]*1024*1024;
if (strtoupper($reg[2]) == 'K') $memmax=$reg[1]*1024;
}