From: willy tarreau Date: Sat, 13 May 2006 14:08:47 +0000 (+0200) Subject: [MINOR] do not report queue time if not queued ! X-Git-Tag: v1.2.13~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=424e04a32b230a25f06fd5e941cd2bfe911e390f;p=thirdparty%2Fhaproxy.git [MINOR] do not report queue time if not queued ! --- diff --git a/haproxy.c b/haproxy.c index e51ae32f32..8bec84b063 100644 --- a/haproxy.c +++ b/haproxy.c @@ -4749,7 +4749,8 @@ int process_srv(struct session *t) { c == CL_STSHUTW || (c == CL_STSHUTR && t->req->l == 0)) { /* give up */ tv_eternity(&t->cnexpire); - t->logs.t_queue = tv_diff(&t->logs.tv_accept, &now); + if (t->pend_pos) + t->logs.t_queue = tv_diff(&t->logs.tv_accept, &now); srv_close_with_err(t, SN_ERR_CLICL, t->pend_pos ? SN_FINST_Q : SN_FINST_C, 0, 0, NULL); return 1;