Commit bcc72bc3 authored by antirez's avatar antirez
Browse files

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.
parent eeffcf38
...@@ -227,7 +227,7 @@ void scriptingInit(void) { ...@@ -227,7 +227,7 @@ void scriptingInit(void) {
/* Set an hook in order to be able to stop the script execution if it /* Set an hook in order to be able to stop the script execution if it
* is running for too much time. */ * is running for too much time. */
lua_sethook(lua,luaMaskCountHook,LUA_MASKCOUNT,10000); lua_sethook(lua,luaMaskCountHook,LUA_MASKCOUNT,100000);
server.lua = lua; server.lua = lua;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment