mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
nginx-0.0.1-2003-11-11-00:09:22 import
This commit is contained in:
@@ -366,8 +366,14 @@ int ngx_devpoll_process_events(ngx_log_t *log)
|
||||
|
||||
nchanges = 0;
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
|
||||
if (ngx_cached_time != tv.tv_sec) {
|
||||
ngx_cached_time = tv.tv_sec;
|
||||
ngx_time_update();
|
||||
}
|
||||
|
||||
if ((int) timer != INFTIM) {
|
||||
gettimeofday(&tv, NULL);
|
||||
delta = tv.tv_sec * 1000 + tv.tv_usec / 1000 - delta;
|
||||
|
||||
#if (NGX_DEBUG_EVENT)
|
||||
|
||||
Reference in New Issue
Block a user