From: Guenter Knauf Date: Tue, 25 Jun 2013 14:49:56 +0000 (+0000) Subject: Update doccu. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=712cb8e41fda99f9f8fe1fa7135d06a45921b8e8;p=thirdparty%2Fapache%2Fhttpd.git Update doccu. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1496501 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_lua.html.en b/docs/manual/mod/mod_lua.html.en index 3301e03ecf9..153b79c7d22 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 fb28dc18b96..ee617d99b23 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.