mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-19 10:57:36 +00:00
fix: sort duration
This commit is contained in:
parent
4998194ca5
commit
d61353c4d9
@ -200,8 +200,8 @@ limitations under the License. -->
|
|||||||
endTimeNanos,
|
endTimeNanos,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.sort((a: { startTime: number }, b: { startTime: number }) => {
|
.sort((a: { startTime: number; endTime: number }, b: { startTime: number; endTime: number }) => {
|
||||||
return a.startTime - b.startTime;
|
return b.endTime - b.startTime - (a.endTime - a.startTime);
|
||||||
});
|
});
|
||||||
|
|
||||||
tree.value = new ListGraph(eventGraph.value, selectEvent);
|
tree.value = new ListGraph(eventGraph.value, selectEvent);
|
||||||
|
Loading…
Reference in New Issue
Block a user