diff options
author | Ruslan Ermilov <ru@nginx.com> | 2017-07-26 13:13:51 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2017-07-26 13:13:51 +0300 |
commit | aa953f5346e38e9ac7a005a5c7d6ce0008ece252 (patch) | |
tree | 1dfdca0bdda8794a0c8b7401aa58d24888a0b668 /src | |
parent | 9edd64fcd842870ea004664288cadc344c33f0bd (diff) | |
download | nginx-aa953f5346e38e9ac7a005a5c7d6ce0008ece252.tar.gz nginx-aa953f5346e38e9ac7a005a5c7d6ce0008ece252.zip |
Cache: fixed max_size on win32.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_file_cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c index a823c51ae..3b2b68a26 100644 --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c @@ -129,6 +129,7 @@ ngx_http_file_cache_init(ngx_shm_zone_t *shm_zone, void *data) if (shm_zone->shm.exists) { cache->sh = cache->shpool->data; cache->bsize = ngx_fs_bsize(cache->path->name.data); + cache->max_size /= cache->bsize; return NGX_OK; } |