From bcc72bc38101e60a6e6a08d70038d7bc8307233f Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 6 May 2011 17:25:19 +0200 Subject: [PATCH] call the Lua hook with minor frequency. It is already enough to call it every 100000 istructions for near millisecond precision. --- src/scripting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting.c b/src/scripting.c index b4297e60..7d222651 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -227,7 +227,7 @@ void scriptingInit(void) { /* Set an hook in order to be able to stop the script execution if it * is running for too much time. */ - lua_sethook(lua,luaMaskCountHook,LUA_MASKCOUNT,10000); + lua_sethook(lua,luaMaskCountHook,LUA_MASKCOUNT,100000); server.lua = lua; } -- 2.45.2