diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2013-09-04 21:30:09 +0400 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-09-04 21:30:09 +0400 |
commit | d33225db585fd40a9662bcc4e1fb12d1cc597867 (patch) | |
tree | 80ac688025138ff1a250e10e29e44add87d88413 /src | |
parent | 6e4030a1ec4a63b1f7d92a270d3bad3883e94ae7 (diff) | |
download | nginx-d33225db585fd40a9662bcc4e1fb12d1cc597867.tar.gz nginx-d33225db585fd40a9662bcc4e1fb12d1cc597867.zip |
Upstream: fixed $upstream_response_time format specifiers.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index f4221edde..0d0d19165 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -4309,7 +4309,7 @@ ngx_http_upstream_response_time_variable(ngx_http_request_t *r, 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++ = '-'; |