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;
|
||||
for (let i = retry; i >= 0; i--) {
|
||||
newStatus = await checkStatus(service);
|
||||
console.log(i);
|
||||
newStatus.changed = new Date().getTime();
|
||||
if (newStatus.status !== "OFFLINE") {
|
||||
if (newStatus.status === "ONLINE") {
|
||||
return newStatus;
|
||||
}
|
||||
const offlineTimeUntilMajor = (service.offlineTimeUntilMajor || config.defaults.offlineTimeUntilMajor) * 1000;
|
||||
|
|
Reference in a new issue