Mercurial > hg > nginx
diff src/os/unix/ngx_process_cycle.c @ 6727:ca709bca4b77
Cache: cache manager limits.
The new parameters "manager_files", "manager_sleep"
and "manager_threshold" were added to proxy_cache_path
and friends.
Note that ngx_path_manager_pt was changed to return ngx_msec_t
instead of time_t (API change).
author | Dmitry Volyntsev <xeioex@nginx.com> |
---|---|
date | Wed, 05 Oct 2016 14:22:30 +0300 |
parents | 7d4e33092e2a |
children | 3069dd358ba2 |
line wrap: on
line diff
--- a/src/os/unix/ngx_process_cycle.c Wed Oct 05 13:57:43 2016 +0300 +++ b/src/os/unix/ngx_process_cycle.c Wed Oct 05 14:22:30 2016 +0300 @@ -1148,11 +1148,11 @@ static void ngx_cache_manager_process_handler(ngx_event_t *ev) { - time_t next, n; ngx_uint_t i; + ngx_msec_t next, n; ngx_path_t **path; - next = 60 * 60; + next = 60 * 60 * 1000; path = ngx_cycle->paths.elts; for (i = 0; i < ngx_cycle->paths.nelts; i++) { @@ -1170,7 +1170,7 @@ next = 1; } - ngx_add_timer(ev, next * 1000); + ngx_add_timer(ev, next); }