From: Guenter Knauf Date: Tue, 25 Jun 2013 14:52:38 +0000 (+0000) Subject: Updated doccu. X-Git-Tag: 2.4.5~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0391bb6190cb26f5eacef2feb37b0602bb7a9ed8;p=apache Updated doccu. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1496503 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_lua.html.en b/docs/manual/mod/mod_lua.html.en index 2d962490a6..c800e63a73 100644 --- a/docs/manual/mod/mod_lua.html.en +++ b/docs/manual/mod/mod_lua.html.en @@ -674,7 +674,7 @@ r:flush() -- flushes the output buffer. while we_have_stuff_to_send do r:puts("Bla bla bla\n") -- print something to client r:flush() -- flush the buffer (send to client) - r:sleep(0.5) -- fake processing time and repeat + r.usleep(500000) -- fake processing time for 0.5 sec. and repeat end @@ -970,8 +970,7 @@ local matches = r:regex("FOO bar BAz", [[(foo) bar]], 1)
-r:sleep(number_of_seconds) -- Puts the script to sleep for a given number of seconds.
-                   -- This can be a floating point number like 1.25 for extra accuracy.
+r.usleep(number_of_microseconds) -- Puts the script to sleep for a given number of microseconds.
 
diff --git a/docs/manual/mod/mod_lua.xml b/docs/manual/mod/mod_lua.xml index 5bbe7a76ba..90580f8aa4 100644 --- a/docs/manual/mod/mod_lua.xml +++ b/docs/manual/mod/mod_lua.xml @@ -633,7 +633,7 @@ r:flush() -- flushes the output buffer. while we_have_stuff_to_send do r:puts("Bla bla bla\n") -- print something to client r:flush() -- flush the buffer (send to client) - r:sleep(0.5) -- fake processing time and repeat + r.usleep(500000) -- fake processing time for 0.5 sec. and repeat end @@ -894,8 +894,7 @@ local matches = r:regex("FOO bar BAz", [[(foo) bar]], 1) -r:sleep(number_of_seconds) -- Puts the script to sleep for a given number of seconds. - -- This can be a floating point number like 1.25 for extra accuracy. +r.usleep(number_of_microseconds) -- Puts the script to sleep for a given number of microseconds.