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
+++ b/src/http/ngx_http_upstream.c
@@ -2873,7 +2873,8 @@ ngx_http_upstream_response_time_variable
 
     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);