mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
1 digit precision
This commit is contained in:
parent
ee711d9601
commit
c0cd197cac
1 changed files with 2 additions and 3 deletions
|
|
@ -119,14 +119,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
});
|
||||
const resp = await getRetentionWorkload(request);
|
||||
const percent = (resp.factor - 1) * 100;
|
||||
console.log({ resp, percent });
|
||||
if (percent > 0) {
|
||||
desiredRetentionChangeInfo = tr.deckConfigWorkloadPercentageIncrease({
|
||||
percent,
|
||||
percent: parseFloat(percent.toPrecision(1)),
|
||||
});
|
||||
} else {
|
||||
desiredRetentionChangeInfo = tr.deckConfigWorkloadPercentageDecrease({
|
||||
percent: -percent,
|
||||
percent: parseFloat((-percent).toPrecision(1)),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue