Cap optimal retention simulation to 10 years

This commit is contained in:
Damien Elmes 2023-09-25 14:34:26 +10:00
parent ba9ee93fa8
commit 3c62a8345a

View file

@ -43,6 +43,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
daysToSimulate: 365, daysToSimulate: 365,
maxSecondsOfStudyPerDay: 1800, maxSecondsOfStudyPerDay: 1800,
}); });
$: if (optimalRetentionRequest.daysToSimulate > 3650) {
optimalRetentionRequest.daysToSimulate = 3650;
}
async function computeWeights(): Promise<void> { async function computeWeights(): Promise<void> {
if (computing) { if (computing) {
await setWantsAbort({}); await setWantsAbort({});