Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 1640:02a22cd5282a
64-bit time_t compatibility
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 15 Nov 2007 14:26:36 +0000 |
parents | 4c43e25d11ea |
children | ea681a6a0c61 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Thu Nov 15 14:22:12 2007 +0000 +++ b/src/http/ngx_http_upstream.c Thu Nov 15 14:26:36 2007 +0000 @@ -2873,7 +2873,8 @@ for ( ;; ) { if (state[i].status) { - ms = state[i].response_sec * 1000 + state[i].response_msec; + ms = (ngx_msec_int_t) + (state[i].response_sec * 1000 + state[i].response_msec); ms = (ms >= 0) ? ms : 0; p = ngx_sprintf(p, "%d.%03d", ms / 1000, ms % 1000);