diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-07-11 13:32:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 13:32:45 +0300 |
commit | b6dfef57516f734d3e2e1953d7bcedd69c2d890f (patch) | |
tree | d12ddb70ae449281c0a1c0ee19768c0c11329797 /libnetdata | |
parent | a4b93f7c8a9b436950580865b1db1e41102bc240 (diff) |
health: fix evaluating expression with `nan` (#15348)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/eval/eval.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libnetdata/eval/eval.c b/libnetdata/eval/eval.c index 365f4ab523..236be932b4 100644 --- a/libnetdata/eval/eval.c +++ b/libnetdata/eval/eval.c @@ -213,13 +213,6 @@ static inline NETDATA_DOUBLE eval_value(EVAL_EXPRESSION *exp, EVAL_VALUE *v, int break; } - if(likely(!*error)) { - if(unlikely(isnan(n))) - *error = EVAL_ERROR_VALUE_IS_NAN; - else if(unlikely(isinf(n))) - *error = EVAL_ERROR_VALUE_IS_INFINITE; - } - return n; } |