]> arthur.barton.de Git - netdata.git/blobdiff - src/eval.c
Merge pull request #1998 from ktsaou/master
[netdata.git] / src / eval.c
index a4450f92c7c586d9e57353f6d32c40b900d5d3ff..122959ce4edb06d6ea99999838e53ec320d1046a 100644 (file)
@@ -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, " ] ");