diff --git a/lib/icinga/service-flapping.cpp b/lib/icinga/service-flapping.cpp index b3d5106c2..01cb76039 100644 --- a/lib/icinga/service-flapping.cpp +++ b/lib/icinga/service-flapping.cpp @@ -38,7 +38,7 @@ double Service::GetFlappingCurrent(void) const if (m_FlappingNegative.IsEmpty() || m_FlappingPositive.IsEmpty()) return 0; - if ((m_FlappingPositive + m_FlappingNegative) <= 0) + if (m_FlappingPositive + m_FlappingNegative <= 0) return 0; return 100 * m_FlappingPositive / (m_FlappingPositive + m_FlappingNegative);