Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
duration check if its negative
Browse files Browse the repository at this point in the history
vvvprabhakar committed Nov 1, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e4b5088 commit f158c93
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -201,6 +201,9 @@ function calculateContent(trace: Trace, span: Span, allSpans: Span[], resultValu
overlayWithout[i].relativeStartTime +
overlayWithout[i].duration -
earliestLongerAsParent.relativeStartTime;
if (overlayWithout[i].duration < 0) {
overlayWithout[i].duration = 0;
}
}
}

0 comments on commit f158c93

Please sign in to comment.