]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Send current timestamp to the periodic callbacks
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 29 Oct 2019 15:53:26 +0000 (15:53 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 29 Oct 2019 15:53:26 +0000 (15:53 +0000)
src/lua/lua_config.c

index f75899f0841673288c5f9e5a3202afd658e5c614..33873d8abb3b077d211dbbb357a6931be46e5e03 100644 (file)
@@ -3157,8 +3157,9 @@ lua_periodic_callback (struct ev_loop *loop, ev_timer *w, int revents)
        pev_base = lua_newuserdata (L, sizeof (*pev_base));
        rspamd_lua_setclass (L, "rspamd{ev_base}", -1);
        *pev_base = periodic->event_loop;
+       lua_pushnumber (L, ev_now (periodic->event_loop));
 
-       lua_thread_call (thread, 2);
+       lua_thread_call (thread, 3);
 }
 
 static void