Reorder steps

This commit is contained in:
Kerollmops 2025-02-18 19:26:41 +01:00
parent 4a058a080e
commit e9add14189
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -85,7 +85,7 @@ fn push_steps_durations(
now: Instant,
idx: usize,
) {
for (i, (_, _, started_at)) in steps.iter().skip(idx).enumerate() {
for (i, (_, _, started_at)) in steps.iter().skip(idx).enumerate().rev() {
let full_name = steps.iter().take(idx + i + 1).map(|(_, s, _)| s.name()).join(" > ");
durations.push((full_name, now.duration_since(*started_at)));
}