Used in DB IDO and Livestatus. */
| 145 | |
| 146 | /* Used in DB IDO and Livestatus. */ |
| 147 | int CompatUtility::GetCheckableNotificationNextNotification(const Checkable::Ptr& checkable) |
| 148 | { |
| 149 | double next_notification = 0.0; |
| 150 | for (const Notification::Ptr& notification : checkable->GetNotifications()) { |
| 151 | if (next_notification == 0 || notification->GetNextNotification() < next_notification) |
| 152 | next_notification = notification->GetNextNotification(); |
| 153 | } |
| 154 | |
| 155 | return static_cast<int>(next_notification); |
| 156 | } |
| 157 | |
| 158 | /* Used in DB IDO and Livestatus. */ |
| 159 | int CompatUtility::GetCheckableNotificationNotificationNumber(const Checkable::Ptr& checkable) |
nothing calls this directly
no test coverage detected