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