From d934de614615b46c50a99232ba35acd6901794f9 Mon Sep 17 00:00:00 2001 From: vvvprabhakar Date: Mon, 1 Nov 2021 11:29:02 +0530 Subject: [PATCH] duration fix update Signed-off-by: vvvprabhakar --- .../src/components/TracePage/TraceStatistics/tableValues.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/jaeger-ui/src/components/TracePage/TraceStatistics/tableValues.tsx b/packages/jaeger-ui/src/components/TracePage/TraceStatistics/tableValues.tsx index a396f50462..9480b6bb60 100644 --- a/packages/jaeger-ui/src/components/TracePage/TraceStatistics/tableValues.tsx +++ b/packages/jaeger-ui/src/components/TracePage/TraceStatistics/tableValues.tsx @@ -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; + } } }