From: Guenter Knauf Date: Fri, 10 May 2013 03:37:06 +0000 (+0000) Subject: Revert part of r1476482 which disabled fractions of seconds with r.sleep(). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9983cd19d71e8738d72e72a624dd60c1dec5b25d;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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; }