mirror of https://github.com/Icinga/icinga2.git
Fix rebase against master branch
This commit is contained in:
parent
61d9130dd0
commit
9235246985
|
@ -1494,6 +1494,16 @@ void IcingaDB::SendRemovedComment(const Comment::Ptr& comment)
|
|||
xAdd.emplace_back(GetObjectIdentifier(endpoint));
|
||||
}
|
||||
|
||||
if (comment->GetExpireTime() < Utility::GetTime()) {
|
||||
xAdd.emplace_back("remove_time");
|
||||
xAdd.emplace_back(Convert::ToString(TimestampToMilliseconds(Utility::GetTime())));
|
||||
xAdd.emplace_back("has_been_removed");
|
||||
xAdd.emplace_back("1");
|
||||
} else {
|
||||
xAdd.emplace_back("has_been_removed");
|
||||
xAdd.emplace_back("0");
|
||||
}
|
||||
|
||||
m_Rcon->FireAndForgetQuery(std::move(xAdd));
|
||||
}
|
||||
|
||||
|
@ -1535,16 +1545,6 @@ void IcingaDB::SendFlappingChanged(const Checkable::Ptr& checkable, const Value&
|
|||
xAdd.emplace_back(GetObjectIdentifier(endpoint));
|
||||
}
|
||||
|
||||
if (comment->GetExpireTime() < Utility::GetTime()) {
|
||||
xAdd.emplace_back("remove_time");
|
||||
xAdd.emplace_back(Convert::ToString(TimestampToMilliseconds(Utility::GetTime())));
|
||||
xAdd.emplace_back("has_been_removed");
|
||||
xAdd.emplace_back("1");
|
||||
} else {
|
||||
xAdd.emplace_back("has_been_removed");
|
||||
xAdd.emplace_back("0");
|
||||
}
|
||||
|
||||
m_Rcon->FireAndForgetQuery(std::move(xAdd));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue