Mercurial > hg > nginx
changeset 5368:cd46297325bd
Upstream: fixed $upstream_response_time format specifiers.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 04 Sep 2013 21:30:09 +0400 |
parents | a15abc456bb5 |
children | 907f01a2a7c0 |
files | src/http/ngx_http_upstream.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Wed Sep 04 21:17:05 2013 +0400 +++ b/src/http/ngx_http_upstream.c Wed Sep 04 21:30:09 2013 +0400 @@ -4309,7 +4309,7 @@ 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++ = '-';