mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Reorder steps
This commit is contained in:
parent
4a058a080e
commit
e9add14189
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ fn push_steps_durations(
|
||||||
now: Instant,
|
now: Instant,
|
||||||
idx: usize,
|
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(" > ");
|
let full_name = steps.iter().take(idx + i + 1).map(|(_, s, _)| s.name()).join(" > ");
|
||||||
durations.push((full_name, now.duration_since(*started_at)));
|
durations.push((full_name, now.duration_since(*started_at)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue