X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Feval.c;h=122959ce4edb06d6ea99999838e53ec320d1046a;hb=cb89c6bfdb19c269158625713785e514b74950eb;hp=a4450f92c7c586d9e57353f6d32c40b900d5d3ff;hpb=865c7caae45ed828fd70c7995e305150c753b19a;p=netdata.git diff --git a/src/eval.c b/src/eval.c index a4450f92..122959ce 100644 --- a/src/eval.c +++ b/src/eval.c @@ -102,7 +102,7 @@ static inline calculated_number eval_variable(EVAL_EXPRESSION *exp, EVAL_VARIABL } if(unlikely(v->hash == now_hash && !strcmp(v->name, "now"))) { - n = time(NULL); + n = now_realtime_sec(); buffer_strcat(exp->error_msg, "[ $now = "); print_parsed_as_constant(exp->error_msg, n); buffer_strcat(exp->error_msg, " ] ");