| 1853 | } |
| 1854 | |
| 1855 | static inline |
| 1856 | unsigned short GetPreviousState(const Checkable::Ptr& checkable, const Service::Ptr& service, StateType type) |
| 1857 | { |
| 1858 | auto phs ((type == StateTypeHard ? checkable->GetLastHardStatesRaw() : checkable->GetLastSoftStatesRaw()) % 100u); |
| 1859 | |
| 1860 | if (service || phs == ServicePending) { |
| 1861 | return phs; |
| 1862 | } else { |
| 1863 | return Host::CalculateState(ServiceState(phs)); |
| 1864 | } |
| 1865 | } |
| 1866 | |
| 1867 | void IcingaDB::SendStateChange(const ConfigObject::Ptr& object, const CheckResult::Ptr& cr, StateType type) |
| 1868 | { |
no outgoing calls
no test coverage detected