Skip to content

Commit

Permalink
[bugfix]: Endless loop in TraceStatistics View (#843)
Browse files Browse the repository at this point in the history
Signed-off-by: vvvprabhakar <prabhakar.vemparala@freshworks.com>
  • Loading branch information
vvvprabhakar committed Nov 25, 2021
1 parent 9068a11 commit 42b39c9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 42b39c9

Please sign in to comment.