mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-17 19:54:39 -05:00
Fix trailing space warning
This commit is contained in:
parent
c7ec9a07e2
commit
7ed8ae9f7c
@ -471,7 +471,7 @@ class Monitor extends BeanModel {
|
|||||||
|
|
||||||
if (bean.status === DOWN && this.resendInterval > 0) {
|
if (bean.status === DOWN && this.resendInterval > 0) {
|
||||||
// divide by 1000 to convert from milliseconds to seconds and divide by 60 to convert from seconds to minutes
|
// divide by 1000 to convert from milliseconds to seconds and divide by 60 to convert from seconds to minutes
|
||||||
let timeSinceLastNotified = (dayjs.utc().valueOf() - (bean.lastNotifiedTime == null ? 0 : dayjs.utc(bean.lastNotifiedTime).valueOf())) / 1000 / 60;
|
let timeSinceLastNotified = (dayjs.utc().valueOf() - (bean.lastNotifiedTime == null ? 0 : dayjs.utc(bean.lastNotifiedTime).valueOf())) / 1000 / 60;
|
||||||
if (timeSinceLastNotified >= this.resendInterval) {
|
if (timeSinceLastNotified >= this.resendInterval) {
|
||||||
// Send notification again, because we are still DOWN
|
// Send notification again, because we are still DOWN
|
||||||
log.debug("monitor", `[${this.name}] sendNotification again: lastNotifiedTime: ${bean.lastNotifiedTime} | current time: ${R.isoDateTime(dayjs.utc())}`);
|
log.debug("monitor", `[${this.name}] sendNotification again: lastNotifiedTime: ${bean.lastNotifiedTime} | current time: ${R.isoDateTime(dayjs.utc())}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user