changeset 1898:9a73235ce453

fix previous commit
author Igor Sysoev <igor@sysoev.ru>
date Sat, 16 Feb 2008 14:24:43 +0000
parents b43f244d0430
children d24ef26f1205
files src/http/modules/perl/nginx.xs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/perl/nginx.xs
+++ b/src/http/modules/perl/nginx.xs
@@ -939,7 +939,7 @@ sleep(r, sleep, next)
 
     ngx_http_perl_set_request(r);
 
-    sleep = SvIV(ST(1));
+    sleep = (ngx_msec_t) SvIV(ST(1));
 
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
                    "perl sleep: %M", sleep);