Mercurial > hg > nginx
diff src/http/ngx_http_write_filter.c @ 363:f2755a2885c8
nginx-0.0.7-2004-06-21-23:22:53 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 21 Jun 2004 19:22:53 +0000 |
parents | 7650aea1816f |
children | b670db10cbbd |
line wrap: on
line diff
--- 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 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) {