Skip to content

Commit

Permalink
fix(analyze): show last 10 outages (number was wrong)
Browse files Browse the repository at this point in the history
  • Loading branch information
PlexSheep committed Jan 7, 2025
1 parent 3376fd2 commit d74aab4
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 @@ -283,7 +283,7 @@ fn outages(store: &Store, f: &mut String) -> Result<(), AnalysisError> {
}
let outage = Outage::new(group.first().unwrap(), group.last().copied(), &group);
writeln!(f, "{outage_idx}:\t{}", &outage.short_report()?)?;
if outage_idx > 10 {
if outage_idx > 9 {
writeln!(f, "showing only the 10 latest outages")?;
break;
}
Expand Down

0 comments on commit d74aab4

Please sign in to comment.