mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +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()) {
|
||||
auto parent (dep->GetParent());
|
||||
for (auto& parent : GetParents()) {
|
||||
ObjectLock oLock (parent);
|
||||
|
||||
if (!parent->GetProblem() && parent->GetLastStateChange() >= threshold) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user