diff --git a/src/health.ts b/src/health.ts index 15e85e0..37478b8 100644 --- a/src/health.ts +++ b/src/health.ts @@ -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) } }