]> granicus.if.org Git - apache/commitdiff
Updated doccu.
authorGuenter Knauf <fuankg@apache.org>
Tue, 25 Jun 2013 14:52:38 +0000 (14:52 +0000)
committerGuenter Knauf <fuankg@apache.org>
Tue, 25 Jun 2013 14:52:38 +0000 (14:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1496503 13f79535-47bb-0310-9956-ffa450edef68

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

index 2d962490a64ca4cafd32379745beb643341869a0..c800e63a73f0d461f3aea60ec5dc889a828fe61c 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 5bbe7a76bae798983ba4d7fd4ea8b58ba9e32f80..90580f8aa42f113b97b40c3fdb9f8a084bd11ff8 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">