Skip to content

Commit

Permalink
fix(analyze): only take actual failed checks into outages
Browse files Browse the repository at this point in the history
  • Loading branch information
PlexSheep committed Jan 7, 2025
1 parent 9878561 commit 96fcf97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analyze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ fn fail_groups<'check>(checks: &[&'check Check]) -> Vec<CheckGroup<'check>> {
if *t >= window_start && *t <= window_end && processed_times.insert(*t) {
// Only process if not already processed
if let Some(checks) = by_time.get(t) {
current_group.extend(checks.iter().cloned());
current_group.extend(checks.iter().filter(|c| !c.is_success()).cloned());
}
}
}
Expand Down

0 comments on commit 96fcf97

Please sign in to comment.