Skip to content

Commit d74aab4

Browse files
committed
fix(analyze): show last 10 outages (number was wrong)
1 parent 3376fd2 commit d74aab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analyze.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ fn outages(store: &Store, f: &mut String) -> Result<(), AnalysisError> {
283283
}
284284
let outage = Outage::new(group.first().unwrap(), group.last().copied(), &group);
285285
writeln!(f, "{outage_idx}:\t{}", &outage.short_report()?)?;
286-
if outage_idx > 10 {
286+
if outage_idx > 9 {
287287
writeln!(f, "showing only the 10 latest outages")?;
288288
break;
289289
}

0 commit comments

Comments
 (0)