Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
362:7650aea1816f | 363:f2755a2885c8 |
---|---|
160 "http write filter %X", chain); | 160 "http write filter %X", chain); |
161 | 161 |
162 if (conf->limit_rate) { | 162 if (conf->limit_rate) { |
163 sent = r->connection->sent - sent; | 163 sent = r->connection->sent - sent; |
164 r->connection->write->delayed = 1; | 164 r->connection->write->delayed = 1; |
165 ngx_add_timer(r->connection->write, sent * 1000 / conf->limit_rate); | 165 ngx_add_timer(r->connection->write, |
166 (ngx_msec_t) sent * 1000 / conf->limit_rate); | |
166 } | 167 } |
167 | 168 |
168 if (chain == NGX_CHAIN_ERROR) { | 169 if (chain == NGX_CHAIN_ERROR) { |
169 return NGX_ERROR; | 170 return NGX_ERROR; |
170 } | 171 } |