Skip to content

Commit f309c6f

Browse files
committed
Fix for in progress span durations
1 parent a47600d commit f309c6f

File tree

1 file changed

+9
-2
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam

1 file changed

+9
-2
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam/route.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,8 +1024,15 @@ function TimelineView({
10241024
)}
10251025
durationMs={
10261026
node.data.duration
1027-
? nanosecondsToMilliseconds(Math.min(node.data.duration, duration))
1028-
: nanosecondsToMilliseconds(duration - node.data.offset)
1027+
? //completed
1028+
nanosecondsToMilliseconds(Math.min(node.data.duration, duration))
1029+
: //in progress
1030+
nanosecondsToMilliseconds(
1031+
Math.min(
1032+
duration + (queuedDuration ?? 0) - node.data.offset,
1033+
duration
1034+
)
1035+
)
10291036
}
10301037
node={node}
10311038
fadeLeft={isTopSpan && queuedDuration !== undefined}

0 commit comments

Comments
 (0)