Skip to main content

sampling_schedule

Function sampling_schedule 

Source
pub fn sampling_schedule(idle_secs: u64) -> (Duration, Duration)
Expand description

When sampling starts and how often it repeats, from the silence budget: quiet for max(250 ms, min(30 s, budget/3)), then every clamp(budget/4, 250 ms, 10 s) — so even a one-second budget is sampled several times before it runs out.