summaryrefslogtreecommitdiffstats
path: root/libnetdata/eval/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetdata/eval/eval.c')
-rw-r--r--libnetdata/eval/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetdata/eval/eval.c b/libnetdata/eval/eval.c
index f8af801f5..b53b07039 100644
--- a/libnetdata/eval/eval.c
+++ b/libnetdata/eval/eval.c
@@ -80,7 +80,7 @@ static inline calculated_number eval_variable(EVAL_EXPRESSION *exp, EVAL_VARIABL
}
if(unlikely(v->hash == this_hash && !strcmp(v->name, "this"))) {
- n = (exp->this)?*exp->this:NAN;
+ n = (exp->myself)?*exp->myself:NAN;
buffer_strcat(exp->error_msg, "[ $this = ");
print_parsed_as_constant(exp->error_msg, n);
buffer_strcat(exp->error_msg, " ] ");