]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Update doccu.
authorGuenter Knauf <fuankg@apache.org>
Tue, 25 Jun 2013 14:49:56 +0000 (14:49 +0000)
committerGuenter Knauf <fuankg@apache.org>
Tue, 25 Jun 2013 14:49:56 +0000 (14:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1496501 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_lua.html.en
docs/manual/mod/mod_lua.xml

index 3301e03ecf93ebc92543e1a27ee180e042f50140..153b79c7d22cec10813fc08a16068354794f25b9 100644 (file)
@@ -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", [[(foo) bar]], 1)
 
 
 <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>
 
 
index fb28dc18b9613fdeab9e6f4a5a207234627678ba..ee617d99b23a0487dde722f24419494282261a20 100644 (file)
@@ -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", [[(foo) bar]], 1)
 </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">