mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
Use GetParents()
in FireSppressedNotifications()
It's way efficient than accessing them through the dependency objects, plus we won't have any duplicates.
This commit is contained in:
parent
8640a3f84e
commit
915ea6427e
@ -167,8 +167,7 @@ void Checkable::FireSuppressedNotifications()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto& dep : GetDependencies()) {
|
for (auto& parent : GetParents()) {
|
||||||
auto parent (dep->GetParent());
|
|
||||||
ObjectLock oLock (parent);
|
ObjectLock oLock (parent);
|
||||||
|
|
||||||
if (!parent->GetProblem() && parent->GetLastStateChange() >= threshold) {
|
if (!parent->GetProblem() && parent->GetLastStateChange() >= threshold) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user