diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-11-28 04:53:08 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-11-28 04:53:08 +0000 |
commit | 315e0143f65da3485dcbcd2f6a3172a351618aec (patch) | |
tree | b713ae472cffab249c95917c6fb6d242d54e0a87 /libnetdata/eval/eval.c | |
parent | Adding upstream version 1.18.1. (diff) | |
download | netdata-315e0143f65da3485dcbcd2f6a3172a351618aec.tar.xz netdata-315e0143f65da3485dcbcd2f6a3172a351618aec.zip |
Adding upstream version 1.19.0.upstream/1.19.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libnetdata/eval/eval.c')
-rw-r--r-- | libnetdata/eval/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetdata/eval/eval.c b/libnetdata/eval/eval.c index 0316edac0..f8af801f5 100644 --- a/libnetdata/eval/eval.c +++ b/libnetdata/eval/eval.c @@ -176,7 +176,7 @@ static inline calculated_number eval_variable(EVAL_EXPRESSION *exp, EVAL_VARIABL *error = EVAL_ERROR_UNKNOWN_VARIABLE; buffer_sprintf(exp->error_msg, "[ undefined variable '%s' ] ", v->name); - return 0; + return NAN; } static inline calculated_number eval_value(EVAL_EXPRESSION *exp, EVAL_VALUE *v, int *error) { |