Skip to main content

scaled_deadline

Function scaled_deadline 

Source
pub(crate) fn scaled_deadline(
    per_cycle: Duration,
    ssas_per_request: usize,
) -> Duration
Expand description

A per-cycle deadline duration as it is actually armed for a batch of ssas_per_request.

One place computes this so the validator and the supervisor cannot disagree about what a configuration means. ssas_per_request is clamped rather than trusted, because a supervisor can be constructed from a config that never went through validate_pix_supervision; the multiplication saturates for the same reason.