diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-03-13 18:08:07 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-03-13 18:08:07 +0000 |
commit | 2f916a972139be74d437e40bdc7d236401123170 (patch) | |
tree | fcd2498751fa4da54ce7b32cfea08975893d83c9 /src/http/ngx_http_file_cache.c | |
parent | b80f68aeda3d958c6c8e52a796fcc561cd9c6e1a (diff) | |
download | nginx-2f916a972139be74d437e40bdc7d236401123170.tar.gz nginx-2f916a972139be74d437e40bdc7d236401123170.zip |
*) use previously cached GMT offset value to update time from a signal handler
*) change ngx_time_update() interface since there are no notification methods
those return time
Diffstat (limited to 'src/http/ngx_http_file_cache.c')
-rw-r--r-- | src/http/ngx_http_file_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c index bd315eaa2..d24966fad 100644 --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c @@ -1216,7 +1216,7 @@ ngx_http_file_cache_manager_sleep(ngx_http_file_cache_t *cache) if (cache->files++ > 100) { - ngx_time_update(0, 0); + ngx_time_update(0); elapsed = ngx_abs((ngx_msec_int_t) (ngx_current_msec - cache->last)); @@ -1233,7 +1233,7 @@ ngx_http_file_cache_manager_sleep(ngx_http_file_cache_t *cache) ngx_msleep(200); - ngx_time_update(0, 0); + ngx_time_update(0); } cache->last = ngx_current_msec; |