]> git.kaiwu.me - nginx.git/commitdiff
fix previous commit
authorIgor Sysoev <igor@sysoev.ru>
Sat, 16 Feb 2008 14:24:43 +0000 (14:24 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 16 Feb 2008 14:24:43 +0000 (14:24 +0000)
src/http/modules/perl/nginx.xs

index ea8c366df02318025cdc360531ac8d35d5970b9b..4524a8c40cb350f17581881f233807b3c25339be 100644 (file)
@@ -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);