| 81 | } |
| 82 | |
| 83 | int EndpointDbObject::EndpointIsConnected(const Endpoint::Ptr& endpoint) |
| 84 | { |
| 85 | unsigned int is_connected = endpoint->GetConnected() ? 1 : 0; |
| 86 | |
| 87 | /* if identity is equal to node, fake is_connected */ |
| 88 | if (endpoint->GetName() == IcingaApplication::GetInstance()->GetNodeName()) |
| 89 | is_connected = 1; |
| 90 | |
| 91 | return is_connected; |
| 92 | } |
nothing calls this directly
no test coverage detected