Add flex time so that the next program in time slots happens AFTER the current time. This is specially good for weekly slots, because programming won't start at Thursday for no reason anymore.
This commit is contained in:
parent
8889d5a456
commit
de3f859dea
@ -325,6 +325,9 @@ module.exports = async( programs, schedule ) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (ts > t0) {
|
||||
pushFlex( ts - t0 );
|
||||
}
|
||||
while ( (t < hardLimit) && (p.length < LIMIT) ) {
|
||||
await throttle();
|
||||
//ensure t is padded
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user