fix: downtime calculation

pull/5/head
lyc8503 2023-11-19 15:05:03 +08:00
parent 54ffad7baa
commit ccbb48b040
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ export default {
lastIncident.end = currentTimeSecond
await config.callback(
`✔️${monitor.name} came back up at ${timeString} after ${Math.round(
(lastIncident.end - lastIncident.start.slice(-1)[0]) / 60
(lastIncident.end - lastIncident.start[0]) / 60
)} minutes of downtime`
)
}