comparison src/http/ngx_http_write_filter_module.c @ 1412:97668157b352

fix build on amd64
author Igor Sysoev <igor@sysoev.ru>
date Tue, 21 Aug 2007 11:05:11 +0000
parents e67ef50c3176
children 6a8a066adc98
comparison
equal deleted inserted replaced
1411:a7beefaad711 1412:97668157b352
249 c->write->delayed = 1; 249 c->write->delayed = 1;
250 ngx_add_timer(c->write, (ngx_msec_t) (sent * 1000 / r->limit_rate + 1)); 250 ngx_add_timer(c->write, (ngx_msec_t) (sent * 1000 / r->limit_rate + 1));
251 251
252 } else if (c->write->ready 252 } else if (c->write->ready
253 && clcf->sendfile_max_chunk 253 && clcf->sendfile_max_chunk
254 && c->sent - sent >= clcf->sendfile_max_chunk - 2 * ngx_pagesize) 254 && (size_t) (c->sent - sent)
255 >= clcf->sendfile_max_chunk - 2 * ngx_pagesize)
255 { 256 {
256 c->write->delayed = 1; 257 c->write->delayed = 1;
257 ngx_add_timer(c->write, 1); 258 ngx_add_timer(c->write, 1);
258 } 259 }
259 260