tranche tweaks

This commit is contained in:
Tim Olson
2023-12-09 00:59:49 -04:00
parent 7e33ffba76
commit f5fe0a45b7
2 changed files with 13 additions and 11 deletions

View File

@@ -45,6 +45,8 @@ export function timesliceTranches() {
} else {
window = Math.round(duration / n)
}
if( window < 60 )
window = 60
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++) {