Rename min/max to make it clear they restrict interval, not fuzz

This commit is contained in:
Damien Elmes 2025-09-27 13:37:41 +07:00
parent 83851af4b5
commit 73cc27ad39

View file

@ -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 {