commit db22557: [Minor] Send current timestamp to the periodic callbacks
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Oct 29 16:00:10 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-29 15:53:26 +0000
URL: https://github.com/rspamd/rspamd/commit/db225575e350429686fce3012cbfbb38fd8fb2a4
[Minor] Send current timestamp to the periodic callbacks
---
src/lua/lua_config.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index f75899f08..33873d8ab 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -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
More information about the Commits
mailing list