Function hard_cap

Source
pub fn hard_cap(d: f64) -> i64
Expand description

The hard cap that belongs to a snapshotted D: ceil(2 × D).

A packet is clipped to the remaining budget rather than allowed to overshoot, so a large packet can never step past the cap.