From 0cae77afdc74e5fc5e0ab5157a2c4cc5446f80aa Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Thu, 21 Sep 2023 12:07:02 +0200 Subject: [PATCH] Update TimelineGraph.tsx --- src/Draco.Trace.Visualizer/src/TimelineGraph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Draco.Trace.Visualizer/src/TimelineGraph.tsx b/src/Draco.Trace.Visualizer/src/TimelineGraph.tsx index 8c2abe4a0..f70b6aa41 100644 --- a/src/Draco.Trace.Visualizer/src/TimelineGraph.tsx +++ b/src/Draco.Trace.Visualizer/src/TimelineGraph.tsx @@ -26,7 +26,7 @@ const TimelineGraph = (props: Props) => { .attr('height', height); const messageHierarchy = d3.hierarchy(toTimelineMessage(data.rootMessage), getTimelineChildren); - messageHierarchy.each(node => (node as any).value = node.data.endTime - node.data.startTime); + messageHierarchy.each(node => (node as any).value = getTimeSpan(node.data)); const partitionLayout = d3 .partition()