Skip to main content

rollups_to_remove

Function rollups_to_remove 

Source
pub fn rollups_to_remove(
    files: &[(String, u64)],
    today: &str,
    keep_days: i64,
    max_bytes: u64,
) -> Vec<String>
Expand description

The rollup files to delete: a month that ended more than keep_days before today, then the oldest of what is left while the total is over max_bytes. The month of today is never listed.