Mercurial > hg > nginx-quic
comparison src/event/modules/ngx_select_module.c @ 218:05592fd7a436
nginx-0.0.1-2004-01-05-23:55:48 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 05 Jan 2004 20:55:48 +0000 |
parents | 2357fa41738a |
children | 1119faf4635a |
comparison
equal
deleted
inserted
replaced
217:c5d1cdcb04ec | 218:05592fd7a436 |
---|---|
368 } | 368 } |
369 | 369 |
370 #else /* HAVE_SELECT_CHANGE_TIMEOUT */ | 370 #else /* HAVE_SELECT_CHANGE_TIMEOUT */ |
371 | 371 |
372 ngx_gettimeofday(&tv); | 372 ngx_gettimeofday(&tv); |
373 | 373 ngx_time_update(tv.tv_sec); |
374 if (ngx_cached_time != tv.tv_sec) { | |
375 ngx_cached_time = tv.tv_sec; | |
376 ngx_time_update(); | |
377 } | |
378 | 374 |
379 if (timer) { | 375 if (timer) { |
380 delta = tv.tv_sec * 1000 + tv.tv_usec / 1000 - delta; | 376 delta = tv.tv_sec * 1000 + tv.tv_usec / 1000 - delta; |
381 | 377 |
382 #if (NGX_DEBUG_EVENT) | 378 #if (NGX_DEBUG_EVENT) |