| commit | ef1f33b0db5a69afeb4272668089ed5f760aea68 | [log] [tgz] |
|---|---|---|
| author | Igor Sysoev <igor@sysoev.ru> | Fri Apr 22 10:06:43 2011 +0000 |
| committer | Igor Sysoev <igor@sysoev.ru> | Fri Apr 22 10:06:43 2011 +0000 |
| tree | 5d654c5adb83ebb96f990ff3ae85930fc354fc8c | |
| parent | 64efecc2b5e6824422703a4fd5106c70d4704ef0 [diff] [blame] |
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.
diff --git a/src/core/ngx_open_file_cache.h b/src/core/ngx_open_file_cache.h index f56dfcc..638bc5d 100644 --- a/src/core/ngx_open_file_cache.h +++ b/src/core/ngx_open_file_cache.h
@@ -20,6 +20,7 @@ ngx_file_uniq_t uniq; time_t mtime; off_t size; + off_t fs_size; off_t directio; size_t read_ahead;