mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
"Workload" variable typo
This commit is contained in:
parent
d13c117e80
commit
05365e7af2
1 changed files with 4 additions and 4 deletions
|
@ -128,7 +128,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let retentionWorloadInfo: undefined | Promise<GetRetentionWorkloadResponse> =
|
let retentionWorkloadInfo: undefined | Promise<GetRetentionWorkloadResponse> =
|
||||||
undefined;
|
undefined;
|
||||||
let lastParams = [...fsrsParams($config)];
|
let lastParams = [...fsrsParams($config)];
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
// If the cache is empty and a request has not yet been made to fill it
|
// If the cache is empty and a request has not yet been made to fill it
|
||||||
!retentionWorloadInfo ||
|
!retentionWorkloadInfo ||
|
||||||
// If the parameters have been changed
|
// If the parameters have been changed
|
||||||
lastParams.toString() !== params.toString()
|
lastParams.toString() !== params.toString()
|
||||||
) {
|
) {
|
||||||
|
@ -148,12 +148,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
search: defaultparamSearch,
|
search: defaultparamSearch,
|
||||||
});
|
});
|
||||||
lastParams = [...params];
|
lastParams = [...params];
|
||||||
retentionWorloadInfo = getRetentionWorkload(request);
|
retentionWorkloadInfo = getRetentionWorkload(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
const previous = +startingDesiredRetention * 100;
|
const previous = +startingDesiredRetention * 100;
|
||||||
const after = retention * 100;
|
const after = retention * 100;
|
||||||
const resp = await retentionWorloadInfo;
|
const resp = await retentionWorkloadInfo;
|
||||||
const factor = resp.costs[after] / resp.costs[previous];
|
const factor = resp.costs[after] / resp.costs[previous];
|
||||||
|
|
||||||
desiredRetentionChangeInfo = tr.deckConfigWorkloadFactorChange({
|
desiredRetentionChangeInfo = tr.deckConfigWorkloadFactorChange({
|
||||||
|
|
Loading…
Reference in a new issue