fix: downtime calculation

This commit is contained in:
lyc8503 committed 2023-11-19 15:05:03 +08:00
1 parent 54ffad7baa
commit ccbb48b040
1 file changed
+1 -1
+1 -1
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`
)
}