[nginx] Cache: fixed max_size on win32.
Ruslan Ermilov
ru at nginx.com
Thu Jul 27 20:26:51 UTC 2017
details: http://hg.nginx.org/nginx/rev/72d3aefc2993
branches:
changeset: 7075:72d3aefc2993
user: Ruslan Ermilov <ru at nginx.com>
date: Wed Jul 26 13:13:51 2017 +0300
description:
Cache: fixed max_size on win32.
diffstat:
src/http/ngx_http_file_cache.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 07a49cce21ca -r 72d3aefc2993 src/http/ngx_http_file_cache.c
--- a/src/http/ngx_http_file_cache.c Tue Jul 25 17:21:59 2017 +0300
+++ b/src/http/ngx_http_file_cache.c Wed Jul 26 13:13:51 2017 +0300
@@ -129,6 +129,7 @@ ngx_http_file_cache_init(ngx_shm_zone_t
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;
}
More information about the nginx-devel
mailing list