diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-11-15 14:26:36 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-11-15 14:26:36 +0000 |
commit | 1d04b14c09ee678a184c0acbd91b532110c02dd9 (patch) | |
tree | 3e35af1b9cf6438a23d8f1bf8caba49ceebaffb5 /src/http/modules/ngx_http_log_module.c | |
parent | a7e01da1636405988d96dfd2dbb2699241f24bbc (diff) | |
download | nginx-1d04b14c09ee678a184c0acbd91b532110c02dd9.tar.gz nginx-1d04b14c09ee678a184c0acbd91b532110c02dd9.zip |
64-bit time_t compatibility
Diffstat (limited to 'src/http/modules/ngx_http_log_module.c')
-rw-r--r-- | src/http/modules/ngx_http_log_module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c index fb7b26c49..157b15c2a 100644 --- a/src/http/modules/ngx_http_log_module.c +++ b/src/http/modules/ngx_http_log_module.c @@ -400,7 +400,8 @@ ngx_http_log_request_time(ngx_http_request_t *r, u_char *buf, tp = ngx_timeofday(); - ms = (tp->sec - r->start_sec) * 1000 + (tp->msec - r->start_msec); + ms = (ngx_msec_int_t) + ((tp->sec - r->start_sec) * 1000 + (tp->msec - r->start_msec)); ms = (ms >= 0) ? ms : 0; return ngx_sprintf(buf, "%T.%03M", ms / 1000, ms % 1000); |