fix:修复监控计数错误
This commit is contained in:
父節點
c827b9dab9
當前提交
dbda9e648f
@ -33,8 +33,9 @@ export async function health() {
|
|||||||
exitNames.push(currentCourse.kcmc)
|
exitNames.push(currentCourse.kcmc)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
totalAcquireCount += parseInt(lastCourse.syrs) - parseInt(currentCourse.syrs)
|
let num = parseInt(lastCourse.syrs) - parseInt(currentCourse.syrs)
|
||||||
if (!acquireNames.includes(currentCourse.kcmc)) {
|
totalAcquireCount += num
|
||||||
|
if (!acquireNames.includes(currentCourse.kcmc) && num > 0) {
|
||||||
acquireNames.push(currentCourse.kcmc)
|
acquireNames.push(currentCourse.kcmc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
載入中…
x
新增問題並參考
Block a user