moira icon indicating copy to clipboard operation
moira copied to clipboard

[FIX] Division by zero situation

Open hv7214 opened this issue 6 years ago • 1 comments

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

hv7214 avatar Mar 28 '20 15:03 hv7214

Coverage Status

Coverage decreased (-0.01%) to 80.522% when pulling efeef49e4951d97ad77697ce227aa6ef2d64573d on hv7214:fix/GetTriggerEvaluationResult_divide_by_zero into 68d7c97579d8bc2a0ae9a40834666aa7469ac72b on moira-alert:master.

coveralls avatar Mar 28 '20 15:03 coveralls

Fix this in PR #984, now we don't have to get to this point with an empty metric

almostinf avatar Mar 12 '24 13:03 almostinf