mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
N°9165 - fix greptile mistake
This commit is contained in:
@@ -19,8 +19,6 @@ class ExecutionLimits
|
|||||||
* @param int $iMaxMemoryPercent Max memory percent allowed (0-100)
|
* @param int $iMaxMemoryPercent Max memory percent allowed (0-100)
|
||||||
*/
|
*/
|
||||||
public function __construct(int $iMaxDuration = 0, int $iMaxMemoryPercent = 100)
|
public function __construct(int $iMaxDuration = 0, int $iMaxMemoryPercent = 100)
|
||||||
{
|
|
||||||
public function __construct(int $iMaxDuration = 0, int $iMaxMemoryPercent = 100)
|
|
||||||
{
|
{
|
||||||
$this->iMaxTime = ($iMaxDuration > 0) ? ($iMaxDuration + time()) : 0;
|
$this->iMaxTime = ($iMaxDuration > 0) ? ($iMaxDuration + time()) : 0;
|
||||||
$this->iMaxMemoryPercent = (int)min(max($iMaxMemoryPercent, 0), 100);
|
$this->iMaxMemoryPercent = (int)min(max($iMaxMemoryPercent, 0), 100);
|
||||||
|
|||||||
Reference in New Issue
Block a user