comparison src/core/ngx_times.c @ 932:1b8111df8051

the initial slot is out of array
author Igor Sysoev <igor@sysoev.ru>
date Tue, 19 Dec 2006 12:38:20 +0000
parents 8a3ba663be1a
children 4cf9d9b644f7
comparison
equal deleted inserted replaced
931:87f456ff13b0 932:1b8111df8051
17 * to run more than NGX_TIME_SLOTS seconds. 17 * to run more than NGX_TIME_SLOTS seconds.
18 */ 18 */
19 19
20 #define NGX_TIME_SLOTS 64 20 #define NGX_TIME_SLOTS 64
21 21
22 static ngx_uint_t slot = NGX_TIME_SLOTS; 22 static ngx_uint_t slot;
23 static ngx_atomic_t ngx_time_lock; 23 static ngx_atomic_t ngx_time_lock;
24 24
25 volatile ngx_msec_t ngx_current_msec; 25 volatile ngx_msec_t ngx_current_msec;
26 volatile ngx_time_t *ngx_cached_time; 26 volatile ngx_time_t *ngx_cached_time;
27 volatile ngx_str_t ngx_cached_err_log_time; 27 volatile ngx_str_t ngx_cached_err_log_time;