Permalink
Browse files

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

…it every 100000 istructions for near millisecond precision.
  • Loading branch information...
antirez committed May 6, 2011
1 parent 780b7b7 commit c24030c63c62fdca1a9fc5c189dcc96e86e17b6b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scripting.c
View
@@ -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;
}

0 comments on commit c24030c

Please sign in to comment.