moira
moira copied to clipboard
[FIX] Division by zero situation
PR Summary
Error was caused due to division by zero, i.e. when step time is zero. So now, when this situation occurs valueIndex is set to infinity.
Closes issue #319
Coverage decreased (-0.01%) to 80.522% when pulling efeef49e4951d97ad77697ce227aa6ef2d64573d on hv7214:fix/GetTriggerEvaluationResult_divide_by_zero into 68d7c97579d8bc2a0ae9a40834666aa7469ac72b on moira-alert:master.
Fix this in PR #984, now we don't have to get to this point with an empty metric