This commit is contained in:
Andras Bacsai 2023-12-21 09:57:39 +01:00
parent 62ca3ffaa5
commit e4c923e358

View File

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