Skip to main content

should_replace

Function should_replace 

Source
pub fn should_replace(
    current: &CandidatePath,
    candidate: &CandidatePath,
    policy: &HysteresisPolicy,
    now_unix: u64,
    last_change_unix: u64,
) -> bool
Expand description

Keep current unless it is unusable or a replacement meets threshold after hold-down.