comparison src/http/ngx_http_cache.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 76e3a93821b1
children d10bcb07d9d4 4919fb357a5d
comparison
equal deleted inserted replaced
3898:bd1222fb0192 3899:e7cd13b7f759
48 48
49 ngx_file_uniq_t uniq; 49 ngx_file_uniq_t uniq;
50 time_t expire; 50 time_t expire;
51 time_t valid_sec; 51 time_t valid_sec;
52 size_t body_start; 52 size_t body_start;
53 off_t length; 53 off_t fs_size;
54 } ngx_http_file_cache_node_t; 54 } ngx_http_file_cache_node_t;
55 55
56 56
57 struct ngx_http_cache_s { 57 struct ngx_http_cache_s {
58 ngx_file_t file; 58 ngx_file_t file;
66 time_t date; 66 time_t date;
67 67
68 size_t header_start; 68 size_t header_start;
69 size_t body_start; 69 size_t body_start;
70 off_t length; 70 off_t length;
71 off_t fs_size;
71 72
72 ngx_uint_t min_uses; 73 ngx_uint_t min_uses;
73 ngx_uint_t error; 74 ngx_uint_t error;
74 ngx_uint_t valid_msec; 75 ngx_uint_t valid_msec;
75 76