From 9983cd19d71e8738d72e72a624dd60c1dec5b25d Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Fri, 10 May 2013 03:37:06 +0000 Subject: [PATCH] Revert part of r1476482 which disabled fractions of seconds with r.sleep(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1480871 13f79535-47bb-0310-9956-ffa450edef68 --- modules/lua/lua_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index 81f940228db..41fb79fbbdc 100644 --- a/modules/lua/lua_request.c +++ b/modules/lua/lua_request.c @@ -1574,7 +1574,7 @@ static int lua_ap_sleep(lua_State *L) apr_interval_time_t msec; luaL_checktype(L, 1, LUA_TNUMBER); - msec = (lua_tointeger(L, 1) * 1000000); + msec = (lua_tonumber(L, 1) * 1000000); apr_sleep(msec); return 0; } -- 2.47.3