mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 13:17:12 -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(
|
pub fn find_interval(
|
||||||
&self,
|
&self,
|
||||||
interval: f32,
|
interval: f32,
|
||||||
minimum: u32,
|
minimum_interval: u32,
|
||||||
maximum: u32,
|
maximum_interval: u32,
|
||||||
days_elapsed: u32,
|
days_elapsed: u32,
|
||||||
deckconfig_id: DeckConfigId,
|
deckconfig_id: DeckConfigId,
|
||||||
fuzz_seed: Option<u64>,
|
fuzz_seed: Option<u64>,
|
||||||
) -> Option<u32> {
|
) -> 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
|
// Don't reschedule the card when it's overdue
|
||||||
if after_days < days_elapsed {
|
if after_days < days_elapsed {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue