]> git.kaiwu.me - nginx.git/commit
Use more precise stat.st_blocks to account cache size on Unix
authorIgor Sysoev <igor@sysoev.ru>
Fri, 22 Apr 2011 10:06:43 +0000 (10:06 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 22 Apr 2011 10:06:43 +0000 (10:06 +0000)
commitef1f33b0db5a69afeb4272668089ed5f760aea68
tree5d654c5adb83ebb96f990ff3ae85930fc354fc8c
parent64efecc2b5e6824422703a4fd5106c70d4704ef0
Use more precise stat.st_blocks to account cache size on Unix
instead of file length rounded to a file system block size.
There is no similar way on Windows, so rounding to a cache->bsize is kept.
src/core/ngx_open_file_cache.c
src/core/ngx_open_file_cache.h
src/http/ngx_http_cache.h
src/http/ngx_http_file_cache.c
src/os/unix/ngx_files.h
src/os/win32/ngx_files.h