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())
return false;
if (it->GetStateType() == StateTypeHard && it->GetState() != StateOK &&
it->GetState() != StateWarning)
return false;
}
if (GetStateType() == StateTypeHard && GetState() != StateOK && GetState() != StateWarning)
return false;
else
return true;
return true;
}
void Service::SetNextCheck(time_t nextCheck)