Used in DB IDO and Livestatus. */
| 133 | |
| 134 | /* Used in DB IDO and Livestatus. */ |
| 135 | int CompatUtility::GetCheckableNotificationLastNotification(const Checkable::Ptr& checkable) |
| 136 | { |
| 137 | double last_notification = 0.0; |
| 138 | for (const Notification::Ptr& notification : checkable->GetNotifications()) { |
| 139 | if (notification->GetLastNotification() > last_notification) |
| 140 | last_notification = notification->GetLastNotification(); |
| 141 | } |
| 142 | |
| 143 | return static_cast<int>(last_notification); |
| 144 | } |
| 145 | |
| 146 | /* Used in DB IDO and Livestatus. */ |
| 147 | int CompatUtility::GetCheckableNotificationNextNotification(const Checkable::Ptr& checkable) |
nothing calls this directly
no test coverage detected