diff options
author | Guenter Knauf <fuankg@apache.org> | 2013-06-25 14:52:38 +0000 |
---|---|---|
committer | Guenter Knauf <fuankg@apache.org> | 2013-06-25 14:52:38 +0000 |
commit | 0391bb6190cb26f5eacef2feb37b0602bb7a9ed8 (patch) | |
tree | 0b1cd8942b30f0f2a42223ced912851e2bb9bf65 /docs/manual/mod/mod_lua.html.en | |
parent | ccf323946ec9c47b69aed582950f9b287b822438 (diff) | |
download | httpd-0391bb6190cb26f5eacef2feb37b0602bb7a9ed8.tar.gz |
Updated doccu.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1496503 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_lua.html.en')
-rw-r--r-- | docs/manual/mod/mod_lua.html.en | 5 |
1 files changed, 2 insertions, 3 deletions
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 </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> |