minor improvements
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Samuel Philipp 2020-03-01 17:24:37 +01:00
parent 37c5c09fd7
commit 93060ff4f6

View file

@ -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;