# HG changeset patch # User Maxim Dounin # Date 1378315809 -14400 # Node ID cd46297325bded5bae5c20235f061638bda029b5 # Parent a15abc456bb5cec9117b22237f7cf99029fcf30e Upstream: fixed $upstream_response_time format specifiers. diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -4309,7 +4309,7 @@ ngx_http_upstream_response_time_variable ms = (ngx_msec_int_t) (state[i].response_sec * 1000 + state[i].response_msec); ms = ngx_max(ms, 0); - p = ngx_sprintf(p, "%d.%03d", ms / 1000, ms % 1000); + p = ngx_sprintf(p, "%T.%03M", (time_t) ms / 1000, ms % 1000); } else { *p++ = '-';