Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 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 | 1608b1135a1d |
children | 46bdbca10dfc |
comparison
equal
deleted
inserted
replaced
5367:a15abc456bb5 | 5368:cd46297325bd |
---|---|
4307 for ( ;; ) { | 4307 for ( ;; ) { |
4308 if (state[i].status) { | 4308 if (state[i].status) { |
4309 ms = (ngx_msec_int_t) | 4309 ms = (ngx_msec_int_t) |
4310 (state[i].response_sec * 1000 + state[i].response_msec); | 4310 (state[i].response_sec * 1000 + state[i].response_msec); |
4311 ms = ngx_max(ms, 0); | 4311 ms = ngx_max(ms, 0); |
4312 p = ngx_sprintf(p, "%d.%03d", ms / 1000, ms % 1000); | 4312 p = ngx_sprintf(p, "%T.%03M", (time_t) ms / 1000, ms % 1000); |
4313 | 4313 |
4314 } else { | 4314 } else { |
4315 *p++ = '-'; | 4315 *p++ = '-'; |
4316 } | 4316 } |
4317 | 4317 |