Skip to content

Commit 053cb78

Browse files
authored
Fix/next_interval (#570)
1 parent 1a8e4f4 commit 053cb78

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

fsrs4anki_scheduler.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// FSRS4Anki v4.11.0 Scheduler Qt6
1+
// FSRS4Anki v4.11.1 Scheduler Qt6
22
set_version();
33
// The latest version will be released on https://github.com/open-spaced-repetition/fsrs4anki/releases/latest
44

@@ -186,7 +186,7 @@ function forgetting_curve(elpased_days, stability) {
186186
return Math.pow(1 + FACTOR * elpased_days / stability, DECAY);
187187
}
188188
function next_interval(stability) {
189-
const new_interval = apply_fuzz(stability / FACTOR * Math.pow(requestRetention, (1 / DECAY) - 1));
189+
const new_interval = apply_fuzz(stability / FACTOR * (Math.pow(requestRetention, 1 / DECAY) - 1));
190190
return Math.min(Math.max(Math.round(new_interval), 1), maximumInterval);
191191
}
192192
function next_difficulty(d, rating) {
@@ -295,7 +295,7 @@ function is_empty() {
295295
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;
296296
}
297297
function set_version() {
298-
const version = "v4.11.0";
298+
const version = "v4.11.1";
299299
customData.again.v = version;
300300
customData.hard.v = version;
301301
customData.good.v = version;

fsrs4anki_scheduler_qt5.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// FSRS4Anki v4.11.0 Scheduler Qt5
1+
// FSRS4Anki v4.11.1 Scheduler Qt5
22
set_version();
33
// The latest version will be released on https://github.com/open-spaced-repetition/fsrs4anki/releases/latest
44

@@ -192,7 +192,7 @@ function forgetting_curve(elpased_days, stability) {
192192
return Math.pow(1 + FACTOR * elpased_days / stability, DECAY);
193193
}
194194
function next_interval(stability) {
195-
const new_interval = apply_fuzz(stability / FACTOR * Math.pow(requestRetention, (1 / DECAY) - 1));
195+
const new_interval = apply_fuzz(stability / FACTOR * (Math.pow(requestRetention, 1 / DECAY) - 1));
196196
return Math.min(Math.max(Math.round(new_interval), 1), maximumInterval);
197197
}
198198
function next_difficulty(d, rating) {
@@ -304,7 +304,7 @@ function is_empty() {
304304
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;
305305
}
306306
function set_version() {
307-
const version = "v4.11.0";
307+
const version = "v4.11.1";
308308
customData.again.v = version;
309309
customData.hard.v = version;
310310
customData.good.v = version;

0 commit comments

Comments
 (0)