Skip to content

Commit

Permalink
Bugfixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarbeutner committed Jul 3, 2012
1 parent db05779 commit d3b4cc7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cib/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d3b4cc7

Please sign in to comment.