Skip to main content

restarts_since

Function restarts_since 

Source
fn restarts_since(rolls: &[Value], then_h: u64) -> u64
Expand description

How many times srv started again in the hours after then_h: those each rollup counted inside its hour, and those between two hours, where the uptime of the later hour’s last line is less than the earlier one’s plus the time between the two lines. Both lines’ own times are used where the rollups have them (2 minutes of room); an older rollup has only its hour’s start, which can be an hour from its last line, and gets 15 minutes.