mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-23 19:15:31 +08:00
Reorder steps
This commit is contained in:
parent
4a058a080e
commit
e9add14189
@ -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…
x
Reference in New Issue
Block a user