Author: fuankg
Date: Tue Jun 25 14:52:38 2013
New Revision: 1496503
URL: http://svn.apache.org/r1496503
Log:
Updated doccu.
Modified:
httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.html.en
httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml
Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.html.en?rev=1496503&r1=1496502&r2=1496503&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.html.en (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.html.en Tue Jun 25 14:52:38 2013
@@ -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
</pre>
@@ -970,8 +970,7 @@ local matches = r:regex("FOO bar BAz", [
<pre class="prettyprint lang-lua">
-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.
</pre>
Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml?rev=1496503&r1=1496502&r2=1496503&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_lua.xml Tue Jun 25 14:52:38 2013
@@ -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
</highlight>
@@ -894,8 +894,7 @@ local matches = r:regex("FOO bar BAz", [
</highlight>
<highlight language="lua">
-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.
</highlight>
<highlight language="lua">
|