| 139 | } |
| 140 | |
| 141 | HostState Host::CalculateState(ServiceState state) |
| 142 | { |
| 143 | switch (state) { |
| 144 | case ServiceOK: |
| 145 | case ServiceWarning: |
| 146 | return HostUp; |
| 147 | default: |
| 148 | return HostDown; |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | HostState Host::GetState() const |
| 153 | { |
nothing calls this directly
no outgoing calls
no test coverage detected