mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Fix: Calculation when unchanged
This commit is contained in:
parent
82a9fa3331
commit
f3f40755af
1 changed files with 4 additions and 4 deletions
|
@ -108,6 +108,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
undefined;
|
undefined;
|
||||||
|
|
||||||
async function getRetentionChangeInfo(retention: number, params: number[]) {
|
async function getRetentionChangeInfo(retention: number, params: number[]) {
|
||||||
|
if (+startingDesiredRetention == roundedRetention) {
|
||||||
|
desiredRetentionChangeInfo = tr.deckConfigWorkloadFactorUnchanged();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!retentionWorloadInfo) {
|
if (!retentionWorloadInfo) {
|
||||||
const request = new GetRetentionWorkloadRequest({
|
const request = new GetRetentionWorkloadRequest({
|
||||||
w: params,
|
w: params,
|
||||||
|
@ -115,10 +119,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
});
|
});
|
||||||
retentionWorloadInfo = getRetentionWorkload(request);
|
retentionWorloadInfo = getRetentionWorkload(request);
|
||||||
}
|
}
|
||||||
if (+startingDesiredRetention == roundedRetention) {
|
|
||||||
desiredRetentionChangeInfo = tr.deckConfigWorkloadFactorUnchanged();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const previous = +startingDesiredRetention * 100;
|
const previous = +startingDesiredRetention * 100;
|
||||||
const after = retention * 100;
|
const after = retention * 100;
|
||||||
|
|
Loading…
Reference in a new issue