From e4c923e358428509f3d8bd1e5843d99a0a439a38 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 21 Dec 2023 09:57:39 +0100 Subject: [PATCH] fix --- app/Models/Server.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Server.php b/app/Models/Server.php index d9d38a679..6f5aacc7b 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -154,11 +154,11 @@ class Server extends BaseModel if ($this->skipServer()) { return false; } + $serverUptimeCheckNumber = $this->unreachable_count; if ($this->unreachable_count < $tries) { $serverUptimeCheckNumber = $this->unreachable_count + 1; - } else { - $serverUptimeCheckNumber = 0; } + $serverUptimeCheckNumberMax = $tries; ray('server: ' . $this->name);