Skip to content

Commit 367d538

Browse files
committed
Only non-debug events can extend the total duration of the run timeline
1 parent dc5492b commit 367d538

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/webapp/app/presenters/v3/RunPresenter.server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ export class RunPresenter {
159159
const offset = millisecondsToNanoseconds(
160160
n.data.startTime.getTime() - treeRootStartTimeMs
161161
);
162-
totalDuration = Math.max(totalDuration, offset + n.data.duration);
162+
//only let non-debug events extend the total duration
163+
if (!n.data.isDebug) {
164+
totalDuration = Math.max(totalDuration, offset + n.data.duration);
165+
}
163166
return {
164167
...n,
165168
data: {

0 commit comments

Comments
 (0)