mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Fix timeout
This commit is contained in:
parent
6ce4612cd7
commit
d104eb4ac1
@ -687,7 +687,9 @@ Dictionary::Ptr RedisWriter::SerializeState(const Checkable::Ptr& checkable)
|
||||
|
||||
attrs->Set("in_downtime", checkable->IsInDowntime());
|
||||
|
||||
if (checkable->GetCheckTimeout())
|
||||
if (checkable->GetCheckTimeout().IsEmpty())
|
||||
attrs->Set("check_timeout",checkable->GetCheckCommand()->GetTimeout());
|
||||
else
|
||||
attrs->Set("check_timeout", checkable->GetCheckTimeout());
|
||||
|
||||
attrs->Set("last_update", Utility::GetTime());
|
||||
|
Loading…
x
Reference in New Issue
Block a user