fix:修复监控计数错误

This commit is contained in:
juzeon 2021-09-14 16:25:11 +08:00
父節點 c827b9dab9
當前提交 dbda9e648f

查看文件

@ -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)
}
}