aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_file_cache.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-03-25 09:10:10 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-03-25 09:10:10 +0000
commit6d45d8a50da07591ed0de584bba1e526cc9b9406 (patch)
tree7ec3bc90902c6ddd64df14ee89e152cd452e229f /src/http/ngx_http_file_cache.c
parent2f916a972139be74d437e40bdc7d236401123170 (diff)
downloadnginx-6d45d8a50da07591ed0de584bba1e526cc9b9406.tar.gz
nginx-6d45d8a50da07591ed0de584bba1e526cc9b9406.zip
*) introduce ngx_time_sigsafe_update() to update the error log time only
*) change ngx_time_update() interface
Diffstat (limited to 'src/http/ngx_http_file_cache.c')
-rw-r--r--src/http/ngx_http_file_cache.c4
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 d24966fad..aa6998b53 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);
+ ngx_time_update();
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);
+ ngx_time_update();
}
cache->last = ngx_current_msec;