health: fix evaluating expression with `nan` (#15348)
Ilya Mashchenko committed
Jul 11, 2023 at 13:32 UTC
b6dfef57516f734d3e2e1953d7bcedd69c2d890f
1 file changed
-7
libnetdata/eval/eval.c
-7
@@ -213,13 +213,6 @@ static inline NETDATA_DOUBLE eval_value(EVAL_EXPRESSION *exp, EVAL_VALUE *v, int
213
break;
214
}
215
216
- if(likely(!*error)) {
217
- if(unlikely(isnan(n)))
218
- *error = EVAL_ERROR_VALUE_IS_NAN;
219
- else if(unlikely(isinf(n)))
220
- *error = EVAL_ERROR_VALUE_IS_INFINITE;
221
- }
222
-
216
return n;
217
}
218