Revert part of r1476482 which disabled fractions of seconds with r.sleep().
authorGuenter Knauf <fuankg@apache.org>
Fri, 10 May 2013 03:37:06 +0000 (03:37 +0000)
committerGuenter Knauf <fuankg@apache.org>
Fri, 10 May 2013 03:37:06 +0000 (03:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1480871 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_request.c

index 81f940228dbe69ca23c03b3d64636ee8b6a2b37e..41fb79fbbdc227ae825c302f337b67342d3a6518 100644 (file)
@@ -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;
 }