From 3e4154dfb57815b78b0f0baeb7713f5dbe887627 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Wed, 29 Sep 2021 17:20:35 +0800 Subject: [PATCH] Fix retry interval affected bug --- server/model/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 9a80225e0..a50baccfd 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -317,7 +317,7 @@ class Monitor extends BeanModel { if (bean.status === UP) { console.info(`Monitor #${this.id} '${this.name}': Successful Response: ${bean.ping} ms | Interval: ${beatInterval} seconds | Type: ${this.type}`); } else if (bean.status === PENDING) { - if (this.retryInterval !== this.interval) { + if (this.retryInterval > 0) { beatInterval = this.retryInterval; } console.warn(`Monitor #${this.id} '${this.name}': Pending: ${bean.msg} | Max retries: ${this.maxretries} | Retry: ${retries} | Retry Interval: ${beatInterval} seconds | Type: ${this.type}`);