提交 c24030c6 编写于 作者: A antirez

call the Lua hook with minor frequency. It is already enough to call it every...

call the Lua hook with minor frequency. It is already enough to call it every 100000 istructions for near millisecond precision.
上级 780b7b7b
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册