Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/os/unix
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2016-10-05 14:22:30 +0300
committerDmitry Volyntsev <xeioex@nginx.com>2016-10-05 14:22:30 +0300
commitb072a6957c97ca7c33a64b1a34f7b66c6e209acf (patch)
tree686dcaa509f136cc405e2741ced292059f0a0b44 /src/os/unix
parentf9430de4851fda75f5ec9b668b6bec6c2b029865 (diff)
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).
Diffstat (limited to 'src/os/unix')
-rw-r--r--src/os/unix/ngx_process_cycle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c
index 83b04ee62..5c4e21dfd 100644
--- a/src/os/unix/ngx_process_cycle.c
+++ b/src/os/unix/ngx_process_cycle.c
@@ -1148,11 +1148,11 @@ ngx_cache_manager_process_cycle(ngx_cycle_t *cycle, void *data)
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 @@ ngx_cache_manager_process_handler(ngx_event_t *ev)
next = 1;
}
- ngx_add_timer(ev, next * 1000);
+ ngx_add_timer(ev, next);
}