Fix #1499 Increase default task memory overflow

This commit is contained in:
Nicolas Le Goff
2013-10-02 11:33:49 +02:00
parent 5e6a6c9702
commit b66da8861a
3 changed files with 6 additions and 8 deletions

View File

@@ -26,8 +26,10 @@ abstract class task_abstract
const MINRECS = 10;
const MAXRECS = 100;
// default min/max values for the 'overflow memory (Mo)' setting on tasks
const MINMEGS = 20;
const MINMEGS = 64;
const MAXMEGS = 256;
// default memory value
const DEFMEGS = 92;
// default min/max values for the 'period (seconds)' setting on tasks
const MINPERIOD = 10;
const MAXPERIOD = 3600;
@@ -775,7 +777,7 @@ abstract class task_abstract
$this->maxmegs = (integer) $sx_task_settings->maxmegs;
if ($sx_task_settings->maxmegs < self::MINMEGS || $sx_task_settings->maxmegs > self::MAXMEGS) {
$this->maxmegs = self::MINMEGS;
$this->maxmegs = self::DEFMEGS;
}
$this->record_buffer_size = (integer) $sx_task_settings->flush;