Skip to main content

downsample

Function downsample 

Source
pub fn downsample(
    points: &[HostPoint],
    range: u64,
    now: u64,
    max: usize,
) -> (u64, Vec<HostPoint>)
Expand description

Points within the last range seconds of now, averaged into buckets so at most max come back. Returns the bucket step in seconds.