Skip to content

Commit

Permalink
Cache: fixed max_size on win32.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdocguard committed Jul 26, 2017
1 parent 9edd64f commit aa953f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/http/ngx_http_file_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aa953f5

Please sign in to comment.