comparison src/core/ngx_times.c @ 557:ecd9c160f25b release-0.3.0

nginx-0.3.0-RELEASE import *) Change: the 10-days live time limit of worker process was eliminated. The limit was introduced because of millisecond timers overflow.
author Igor Sysoev <igor@sysoev.ru>
date Fri, 07 Oct 2005 13:30:52 +0000
parents 09b42134ac0c
children 9c2f3ed7a247
comparison
equal deleted inserted replaced
556:21a706ff4e1f 557:ecd9c160f25b
6 6
7 #include <ngx_config.h> 7 #include <ngx_config.h>
8 #include <ngx_core.h> 8 #include <ngx_core.h>
9 9
10 10
11 ngx_epoch_msec_t ngx_elapsed_msec; 11 ngx_msec_t ngx_current_time;
12 ngx_epoch_msec_t ngx_old_elapsed_msec; 12
13 ngx_epoch_msec_t ngx_start_msec; 13 ngx_int_t ngx_gmtoff;
14
15 ngx_int_t ngx_gmtoff;
16 14
17 static ngx_tm_t ngx_cached_gmtime; 15 static ngx_tm_t ngx_cached_gmtime;
18 16
19 17
20 /* 18 /*
89 ngx_cached_time = &cached_time[0]; 87 ngx_cached_time = &cached_time[0];
90 #endif 88 #endif
91 89
92 ngx_gettimeofday(&tv); 90 ngx_gettimeofday(&tv);
93 91
94 ngx_start_msec = (ngx_epoch_msec_t) tv.tv_sec * 1000 + tv.tv_usec / 1000; 92 ngx_current_time = (ngx_msec_t) tv.tv_sec * 1000 + tv.tv_usec / 1000;
95 ngx_old_elapsed_msec = 0;
96 ngx_elapsed_msec = 0;
97 93
98 #if !(NGX_WIN32) 94 #if !(NGX_WIN32)
99 tzset(); 95 tzset();
100 #endif 96 #endif
101 97