diff options
Diffstat (limited to 'src/timeout.c')
-rw-r--r-- | src/timeout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeout.c b/src/timeout.c index 6a30e3a..38d1135 100644 --- a/src/timeout.c +++ b/src/timeout.c | |||
@@ -125,7 +125,7 @@ void tm_open(lua_State *L) | |||
125 | * time: time out value in seconds | 125 | * time: time out value in seconds |
126 | * mode: "b" for block timeout, "t" for total timeout. (default: b) | 126 | * mode: "b" for block timeout, "t" for total timeout. (default: b) |
127 | \*-------------------------------------------------------------------------*/ | 127 | \*-------------------------------------------------------------------------*/ |
128 | int tm_meth_timeout(lua_State *L, p_tm tm) | 128 | int tm_meth_settimeout(lua_State *L, p_tm tm) |
129 | { | 129 | { |
130 | int ms = lua_isnil(L, 2) ? -1 : (int) (luaL_checknumber(L, 2)*1000.0); | 130 | int ms = lua_isnil(L, 2) ? -1 : (int) (luaL_checknumber(L, 2)*1000.0); |
131 | const char *mode = luaL_optstring(L, 3, "b"); | 131 | const char *mode = luaL_optstring(L, 3, "b"); |