fix:修复监控计数错误

This commit is contained in:
2021-09-14 16:25:11 +08:00
parent c827b9dab9
commit dbda9e648f

View File

@@ -33,8 +33,9 @@ export async function health() {
exitNames.push(currentCourse.kcmc)
}
} else {
totalAcquireCount += parseInt(lastCourse.syrs) - parseInt(currentCourse.syrs)
if (!acquireNames.includes(currentCourse.kcmc)) {
let num = parseInt(lastCourse.syrs) - parseInt(currentCourse.syrs)
totalAcquireCount += num
if (!acquireNames.includes(currentCourse.kcmc) && num > 0) {
acquireNames.push(currentCourse.kcmc)
}
}