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:
vexorian 2021-03-15 00:18:23 -04:00
parent 8889d5a456
commit de3f859dea

View File

@ -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