fix: init minTime to Infinity (#294)

This commit is contained in:
pw151294 2023-07-01 14:39:00 +08:00 committed by GitHub
parent 9827b6766a
commit 30a9cb1c87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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