comparison src/event/modules/ngx_select_module.c @ 120:b776ad95d96d

nginx-0.0.1-2003-07-21-20:24:25 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 21 Jul 2003 16:24:25 +0000
parents cd54bcbaf3b5
children b3655b21375a
comparison
equal deleted inserted replaced
119:cd54bcbaf3b5 120:b776ad95d96d
317 #endif 317 #endif
318 318
319 if (timer) { 319 if (timer) {
320 #if (HAVE_SELECT_CHANGE_TIMEOUT) 320 #if (HAVE_SELECT_CHANGE_TIMEOUT)
321 delta = timer - (tv.tv_sec * 1000 + tv.tv_usec / 1000); 321 delta = timer - (tv.tv_sec * 1000 + tv.tv_usec / 1000);
322
323 #if 0
324 /*
325 * update the cached time if the sum of the last deltas
326 * is more than 0.5 seconds
327 */
328 deltas += delta;
329 if (deltas > 500000) {
330 ngx_cached_time = ngx_real_time();
331 deltas = 0;
332 }
333 #endif
334
322 #else 335 #else
323 delta = ngx_msec() - delta; 336 delta = ngx_msec() - delta;
324 #endif 337 #endif
325 338
326 #if (NGX_DEBUG_EVENT) 339 #if (NGX_DEBUG_EVENT)