init minTime to Infinity

This commit is contained in:
超越光速的人 2023-06-30 22:00:26 +08:00
parent 9827b6766a
commit 1f2aeee865

View File

@ -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) => {