fix: 修复score有时计算不准确的问题

This commit is contained in:
chenjinsong
2023-09-06 11:30:38 +08:00
parent 99dd82d25b
commit b83b51e792
7 changed files with 50 additions and 21 deletions

View File

@@ -859,7 +859,7 @@ export function computeScore (data) {
const scoreArr = []
let num = 0
Object.keys(data).forEach(t => {
if (!data[t]) {
if (!data[t] && data[t] !== 0) {
num += 1
}
if (t === 'establishLatencyMs' || t === 'tcpLostlenPercent' || t === 'pktRetransPercent') {