aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-11-15 14:26:36 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-11-15 14:26:36 +0000
commit1d04b14c09ee678a184c0acbd91b532110c02dd9 (patch)
tree3e35af1b9cf6438a23d8f1bf8caba49ceebaffb5 /src/http/ngx_http_upstream.c
parenta7e01da1636405988d96dfd2dbb2699241f24bbc (diff)
downloadnginx-1d04b14c09ee678a184c0acbd91b532110c02dd9.tar.gz
nginx-1d04b14c09ee678a184c0acbd91b532110c02dd9.zip
64-bit time_t compatibility
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index c6de92bfc..0c36925d9 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2873,7 +2873,8 @@ ngx_http_upstream_response_time_variable(ngx_http_request_t *r,
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);