Mercurial > hg > nginx-quic
diff src/os/win32/ngx_files.h @ 3899:e7cd13b7f759
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.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 22 Apr 2011 10:06:43 +0000 |
parents | 515d50917016 |
children | 2d05952a324d |
line wrap: on
line diff
--- a/src/os/win32/ngx_files.h +++ b/src/os/win32/ngx_files.h @@ -154,6 +154,7 @@ ngx_int_t ngx_file_info(u_char *filename #define ngx_file_size(fi) \ (((off_t) (fi)->nFileSizeHigh << 32) | (fi)->nFileSizeLow) +#define ngx_file_fs_size(fi) ngx_file_size(fi) #define ngx_file_uniq(fi) (*(ngx_file_uniq_t *) &(fi)->nFileIndexHigh)