mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Rename min/max to make it clear they restrict interval, not fuzz
This commit is contained in:
parent
83851af4b5
commit
73cc27ad39
1 changed files with 4 additions and 3 deletions
|
|
@ -115,13 +115,14 @@ impl Rescheduler {
|
|||
pub fn find_interval(
|
||||
&self,
|
||||
interval: f32,
|
||||
minimum: u32,
|
||||
maximum: u32,
|
||||
minimum_interval: u32,
|
||||
maximum_interval: u32,
|
||||
days_elapsed: u32,
|
||||
deckconfig_id: DeckConfigId,
|
||||
fuzz_seed: Option<u64>,
|
||||
) -> Option<u32> {
|
||||
let (before_days, after_days) = constrained_fuzz_bounds(interval, minimum, maximum);
|
||||
let (before_days, after_days) =
|
||||
constrained_fuzz_bounds(interval, minimum_interval, maximum_interval);
|
||||
|
||||
// Don't reschedule the card when it's overdue
|
||||
if after_days < days_elapsed {
|
||||
|
|
|
|||
Loading…
Reference in a new issue