Метод calculateNextPeriod
Сигнатура метода
private function calculateNextPeriod(float $duration, float $stepWindow, int $interval): int
Возвращает:
int
Описание
Keeps the share of the working time equal to the ratio of the window of the step to the base interval: a step that took longer than its window pushes the next run further away by the same proportion. The base interval is the lower bound of the period and the ceiling is the upper one, so once the proportion asks for more than the ceiling the period stops growing with the duration and the share grows instead. The guard on the division is the last line of defence: the getter already keeps the window above zero.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$duration
|
float
|
—
|
—
|
$stepWindow
|
float
|
—
|
—
|
$interval
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/agent/timeline/bindcreatedbackfillagent.php