summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-06-21 19:22:53 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-06-21 19:22:53 +0000
commitb14169a714bb3deeb7f4912a58238f7a54aeecd1 (patch)
tree6f1cd4f91e2239d74e8075cbc7fb965d8d93cb49 /src/http
parentef06648615d6ce6e000e6c737f80c2ba9fa04d3a (diff)
downloadnginx-b14169a714bb3deeb7f4912a58238f7a54aeecd1.tar.gz
nginx-b14169a714bb3deeb7f4912a58238f7a54aeecd1.tar.bz2
nginx-0.0.7-2004-06-21-23:22:53 import
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_write_filter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_write_filter.c b/src/http/ngx_http_write_filter.c
index f82bdaede..2d4ba23bb 100644
--- a/src/http/ngx_http_write_filter.c
+++ b/src/http/ngx_http_write_filter.c
@@ -162,7 +162,8 @@ ngx_int_t ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in)
if (conf->limit_rate) {
sent = r->connection->sent - sent;
r->connection->write->delayed = 1;
- ngx_add_timer(r->connection->write, sent * 1000 / conf->limit_rate);
+ ngx_add_timer(r->connection->write,
+ (ngx_msec_t) sent * 1000 / conf->limit_rate);
}
if (chain == NGX_CHAIN_ERROR) {