This commit is contained in:
parent
37c5c09fd7
commit
93060ff4f6
1 changed files with 1 additions and 2 deletions
3
index.js
3
index.js
|
@ -103,9 +103,8 @@ const checkService = async (service, oldStatus) => {
|
||||||
let newStatus;
|
let newStatus;
|
||||||
for (let i = retry; i >= 0; i--) {
|
for (let i = retry; i >= 0; i--) {
|
||||||
newStatus = await checkStatus(service);
|
newStatus = await checkStatus(service);
|
||||||
console.log(i);
|
|
||||||
newStatus.changed = new Date().getTime();
|
newStatus.changed = new Date().getTime();
|
||||||
if (newStatus.status !== "OFFLINE") {
|
if (newStatus.status === "ONLINE") {
|
||||||
return newStatus;
|
return newStatus;
|
||||||
}
|
}
|
||||||
const offlineTimeUntilMajor = (service.offlineTimeUntilMajor || config.defaults.offlineTimeUntilMajor) * 1000;
|
const offlineTimeUntilMajor = (service.offlineTimeUntilMajor || config.defaults.offlineTimeUntilMajor) * 1000;
|
||||||
|
|
Reference in a new issue