diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-04-22 10:06:43 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-04-22 10:06:43 +0000 |
commit | ef1f33b0db5a69afeb4272668089ed5f760aea68 (patch) | |
tree | 5d654c5adb83ebb96f990ff3ae85930fc354fc8c /src/core/ngx_open_file_cache.h | |
parent | 64efecc2b5e6824422703a4fd5106c70d4704ef0 (diff) | |
download | nginx-ef1f33b0db5a69afeb4272668089ed5f760aea68.tar.gz nginx-ef1f33b0db5a69afeb4272668089ed5f760aea68.zip |
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.
Diffstat (limited to 'src/core/ngx_open_file_cache.h')
-rw-r--r-- | src/core/ngx_open_file_cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ngx_open_file_cache.h b/src/core/ngx_open_file_cache.h index f56dfcc83..638bc5dd1 100644 --- a/src/core/ngx_open_file_cache.h +++ b/src/core/ngx_open_file_cache.h @@ -20,6 +20,7 @@ typedef struct { ngx_file_uniq_t uniq; time_t mtime; off_t size; + off_t fs_size; off_t directio; size_t read_ahead; |