summaryrefslogtreecommitdiff
path: root/src/http/ngx_http_write_filter_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-04-24 06:21:18 +0000
committerJonathan Kolb <jon@b0g.us>2007-04-24 06:21:18 +0000
commit9b4b08199402bb1b2a276b9b36227598140c33af (patch)
tree3d277e270cb1e4b7c81a7b24e089cf99db4c5195 /src/http/ngx_http_write_filter_module.c
parentefb46f1637bbe2cf93311b48bd32e0c702ae2af7 (diff)
downloadnginx-9b4b08199402bb1b2a276b9b36227598140c33af.tar.gz
Changes with nginx 0.5.19 24 Apr 2007v0.5.19
*) Change: now the $request_time variable has millisecond precision. *) Change: the method $r->rflush of ngx_http_perl_module was renamed to the $r->flush. *) Feature: the $upstream_addr variable. *) Feature: the "proxy_headers_hash_max_size" and "proxy_headers_hash_bucket_size" directives. Thanks to Volodymyr Kostyrko. *) Bugfix: the files more than 2G could not be transferred using sendfile and limit_rate on 64-bit platforms. *) Bugfix: the files more than 2G could not be transferred using sendfile on 64-bit Linux.
Diffstat (limited to 'src/http/ngx_http_write_filter_module.c')
-rw-r--r--src/http/ngx_http_write_filter_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_write_filter_module.c b/src/http/ngx_http_write_filter_module.c
index b25d07e81..2015c43ba 100644
--- a/src/http/ngx_http_write_filter_module.c
+++ b/src/http/ngx_http_write_filter_module.c
@@ -210,7 +210,7 @@ ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in)
}
if (r->limit_rate) {
- to_send = r->limit_rate * (ngx_time() - r->start_time + 1) - c->sent;
+ to_send = r->limit_rate * (ngx_time() - r->start_sec + 1) - c->sent;
if (to_send <= 0) {
c->write->delayed = 1;