1
0
Fork 0
mirror of synced 2024-06-09 06:14:43 +12:00

fix(functions): properly cast cpu counts variable

This commit is contained in:
Torsten Dittmann 2021-09-02 20:59:58 +02:00
parent c6b54f111b
commit be1e3acfca

View file

@ -410,9 +410,9 @@ class FunctionsV1 extends Worker
$executionStart = \microtime(true);
$executionTime = \time();
$orchestration->setCpus(App::getEnv('_APP_FUNCTIONS_CPUS', '1'));
$orchestration->setMemory(App::getEnv('_APP_FUNCTIONS_MEMORY', '256'));
$orchestration->setSwap(App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', '256'));
$orchestration->setCpus((int) App::getEnv('_APP_FUNCTIONS_CPUS', 0));
$orchestration->setMemory((int) App::getEnv('_APP_FUNCTIONS_MEMORY', 256));
$orchestration->setSwap((int) App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', 256));
foreach ($vars as &$value) {
$value = strval($value);