Welcome! Log In Create A New Profile

Advanced

[nginx] Upstream: fixed $upstream_response_time format specifiers.

Maxim Dounin
September 04, 2013 01:38PM
details: http://hg.nginx.org/nginx/rev/cd46297325bd
branches:
changeset: 5368:cd46297325bd
user: Maxim Dounin <mdounin@mdounin.ru>
date: Wed Sep 04 21:30:09 2013 +0400
description:
Upstream: fixed $upstream_response_time format specifiers.

diffstat:

src/http/ngx_http_upstream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

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++ = '-';

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Upstream: fixed $upstream_response_time format specifiers.

Maxim Dounin 663 September 04, 2013 01:38PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 271
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready