Skip to content

Commit

Permalink
Fix/next_interval (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock authored Dec 26, 2023
1 parent 1a8e4f4 commit 053cb78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions fsrs4anki_scheduler.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// FSRS4Anki v4.11.0 Scheduler Qt6
// FSRS4Anki v4.11.1 Scheduler Qt6
set_version();
// The latest version will be released on https://github.com/open-spaced-repetition/fsrs4anki/releases/latest

Expand Down Expand Up @@ -186,7 +186,7 @@ function forgetting_curve(elpased_days, stability) {
return Math.pow(1 + FACTOR * elpased_days / stability, DECAY);
}
function next_interval(stability) {
const new_interval = apply_fuzz(stability / FACTOR * Math.pow(requestRetention, (1 / DECAY) - 1));
const new_interval = apply_fuzz(stability / FACTOR * (Math.pow(requestRetention, 1 / DECAY) - 1));
return Math.min(Math.max(Math.round(new_interval), 1), maximumInterval);
}
function next_difficulty(d, rating) {
Expand Down Expand Up @@ -295,7 +295,7 @@ function is_empty() {
return !customData.again.d | !customData.again.s | !customData.hard.d | !customData.hard.s | !customData.good.d | !customData.good.s | !customData.easy.d | !customData.easy.s;
}
function set_version() {
const version = "v4.11.0";
const version = "v4.11.1";
customData.again.v = version;
customData.hard.v = version;
customData.good.v = version;
Expand Down
6 changes: 3 additions & 3 deletions fsrs4anki_scheduler_qt5.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// FSRS4Anki v4.11.0 Scheduler Qt5
// FSRS4Anki v4.11.1 Scheduler Qt5
set_version();
// The latest version will be released on https://github.com/open-spaced-repetition/fsrs4anki/releases/latest

Expand Down Expand Up @@ -192,7 +192,7 @@ function forgetting_curve(elpased_days, stability) {
return Math.pow(1 + FACTOR * elpased_days / stability, DECAY);
}
function next_interval(stability) {
const new_interval = apply_fuzz(stability / FACTOR * Math.pow(requestRetention, (1 / DECAY) - 1));
const new_interval = apply_fuzz(stability / FACTOR * (Math.pow(requestRetention, 1 / DECAY) - 1));
return Math.min(Math.max(Math.round(new_interval), 1), maximumInterval);
}
function next_difficulty(d, rating) {
Expand Down Expand Up @@ -304,7 +304,7 @@ function is_empty() {
return !customData.again.d | !customData.again.s | !customData.hard.d | !customData.hard.s | !customData.good.d | !customData.good.s | !customData.easy.d | !customData.easy.s;
}
function set_version() {
const version = "v4.11.0";
const version = "v4.11.1";
customData.again.v = version;
customData.hard.v = version;
customData.good.v = version;
Expand Down

0 comments on commit 053cb78

Please sign in to comment.