Skip to content

Intervals are clamped to 256 days #153

Description

@Bastian

I'm not sure if this intentional or a bug, but looking at the code, it seems like review intervals are currently clamped to 256 days.

At least for me, this is unexpected for FSRS and should be configurable or at least mentioned somewhere in the README.

/// The maximum review interval in days.
const MAX_INTERVAL: f64 = 256.0;

let interval_clamped: Interval = interval_rounded.clamp(MIN_INTERVAL, MAX_INTERVAL);
let interval_days: i64 = interval_clamped as i64;
let interval_duration: Duration = Duration::days(interval_days);
let due_date: Date = Date::new(today + interval_duration);

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions