Bugfixes.

This commit is contained in:
Gunnar Beutner 2012-07-03 15:20:44 +02:00
parent db05779fde
commit d3b4cc7b0d
1 changed files with 5 additions and 4 deletions

View File

@ -198,12 +198,13 @@ bool Service::IsReachable(void) const
if (!it->IsReachable()) if (!it->IsReachable())
return false; return false;
if (it->GetStateType() == StateTypeHard && it->GetState() != StateOK &&
it->GetState() != StateWarning)
return false;
} }
if (GetStateType() == StateTypeHard && GetState() != StateOK && GetState() != StateWarning) return true;
return false;
else
return true;
} }
void Service::SetNextCheck(time_t nextCheck) void Service::SetNextCheck(time_t nextCheck)