diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-12-21 15:30:30 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-12-21 15:30:30 +0300 |
commit | b1dfe478a03ad6919f174812951f6a2bec8befae (patch) | |
tree | d8802484f8dbf5309b17a95b5fc9749627720a53 /src/core/ngx_times.c | |
parent | 5275a8b3ac534ff36973801ec2aa6ce1214d7cc9 (diff) |
nginx-0.1.13-RELEASE importrelease-0.1.13
*) Feature: the server_names_hash and server_names_hash_threshold
directives.
*) Bugfix: the *.domain.tld names in the "server_name" directive did
not work.
*) Bugfix: the %request_length log parameter logged the incorrect
length.
Diffstat (limited to 'src/core/ngx_times.c')
-rw-r--r-- | src/core/ngx_times.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ngx_times.c b/src/core/ngx_times.c index 5ca235ccf..234a8aead 100644 --- a/src/core/ngx_times.c +++ b/src/core/ngx_times.c @@ -41,7 +41,7 @@ static ngx_mutex_t *ngx_time_mutex; #endif -#if (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)) +#if (NGX_THREADS && (NGX_TIME_T_SIZE > NGX_SIG_ATOMIC_T_SIZE)) volatile time_t *ngx_cached_time; static time_t cached_time[NGX_TIME_SLOTS]; @@ -84,7 +84,7 @@ void ngx_time_init() ngx_cached_http_time.len = sizeof("Mon, 28 Sep 1970 06:00:00 GMT") - 1; ngx_cached_http_log_time.len = sizeof("28/Sep/1970:12:00:00 +0600") - 1; -#if (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)) +#if (NGX_THREADS && (NGX_TIME_T_SIZE > NGX_SIG_ATOMIC_T_SIZE)) ngx_cached_time = &cached_time[0]; #endif @@ -137,7 +137,7 @@ void ngx_time_update(time_t s) slot++; } -#if (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)) +#if (NGX_THREADS && (NGX_TIME_T_SIZE > NGX_SIG_ATOMIC_T_SIZE)) ngx_cached_time = &cached_time[slot]; #endif |