mirror of https://github.com/Icinga/icinga2.git
parent
7d501e0a20
commit
fcc96cfe8f
|
@ -41,7 +41,7 @@ boost::signals2::signal<void (const Endpoint::Ptr&, const Dictionary::Ptr&)> End
|
||||||
*/
|
*/
|
||||||
bool Endpoint::IsConnected(void) const
|
bool Endpoint::IsConnected(void) const
|
||||||
{
|
{
|
||||||
return GetClient();
|
return GetClient() != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
Stream::Ptr Endpoint::GetClient(void) const
|
Stream::Ptr Endpoint::GetClient(void) const
|
||||||
|
|
|
@ -97,7 +97,7 @@ public:
|
||||||
if (!IsObject())
|
if (!IsObject())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return (dynamic_pointer_cast<T>(boost::get<Object::Ptr>(m_Value)));
|
return (dynamic_pointer_cast<T>(boost::get<Object::Ptr>(m_Value)) != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Value FromJson(cJSON *json);
|
static Value FromJson(cJSON *json);
|
||||||
|
|
|
@ -125,7 +125,7 @@ void Service::UpdateNextCheck(void)
|
||||||
|
|
||||||
bool Service::HasBeenChecked(void) const
|
bool Service::HasBeenChecked(void) const
|
||||||
{
|
{
|
||||||
return GetLastCheckResult();
|
return GetLastCheckResult() != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
double Service::GetLastCheck(void) const
|
double Service::GetLastCheck(void) const
|
||||||
|
|
Loading…
Reference in New Issue