From 30a9cb1c87d4851e8ff92115c9a90c4b5cef2269 Mon Sep 17 00:00:00 2001 From: pw151294 <31918390+pw151294@users.noreply.github.com> Date: Sat, 1 Jul 2023 14:39:00 +0800 Subject: [PATCH] fix: init minTime to Infinity (#294) --- src/views/dashboard/related/trace/components/Statistics.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/dashboard/related/trace/components/Statistics.vue b/src/views/dashboard/related/trace/components/Statistics.vue index 00468abe..bcb60c5c 100644 --- a/src/views/dashboard/related/trace/components/Statistics.vue +++ b/src/views/dashboard/related/trace/components/Statistics.vue @@ -67,7 +67,7 @@ limitations under the License. --> function getSpanGroupData(groupspans: Span[], groupRef: StatisticsGroupRef): StatisticsSpan { let maxTime = 0; - let minTime = 0; + let minTime = Infinity; let sumTime = 0; const count = groupspans.length; groupspans.forEach((groupspan: Span) => {