tranche tweak

This commit is contained in:
Tim Olson
2023-12-13 15:02:48 -04:00
parent f5fe0a45b7
commit f79e55bf9a

View File

@@ -46,7 +46,7 @@ export function timesliceTranches() {
window = Math.round(duration / n)
}
if( window < 60 )
window = 60
window = 60 // always allow at least one minute for execution
const amtPerTranche = Math.ceil(MAX_FRACTION / n)
duration -= 15 // subtract 15 seconds so the last tranche completes before the deadline
for (let i = 0; i < n; i++) {