mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -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;
|
||||
|
||||
async function getRetentionChangeInfo(retention: number, params: number[]) {
|
||||
if (+startingDesiredRetention == roundedRetention) {
|
||||
desiredRetentionChangeInfo = tr.deckConfigWorkloadFactorUnchanged();
|
||||
return;
|
||||
}
|
||||
if (!retentionWorloadInfo) {
|
||||
const request = new GetRetentionWorkloadRequest({
|
||||
w: params,
|
||||
|
@ -115,10 +119,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
});
|
||||
retentionWorloadInfo = getRetentionWorkload(request);
|
||||
}
|
||||
if (+startingDesiredRetention == roundedRetention) {
|
||||
desiredRetentionChangeInfo = tr.deckConfigWorkloadFactorUnchanged();
|
||||
return;
|
||||
}
|
||||
|
||||
const previous = +startingDesiredRetention * 100;
|
||||
const after = retention * 100;
|
||||
|
|
Loading…
Reference in a new issue