]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] Restore info about available active/backup servers
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Mon, 27 Sep 2010 11:10:50 +0000 (13:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Oct 2010 17:04:30 +0000 (19:04 +0200)
Bug introduced by 5f5b7d2c1db1fabe3d372b0080a8773147762ee7

This bug was reported by Guido Krause.
(cherry picked from commit 0c801d1f5ffdc2fe3d036c1e5203d617507c55c3)

src/checks.c

index d326625be84ce08e775461bb1cfcd704491ffef2..ef7839b148d70cb222df950b65fa8bc6cf43ea8e 100644 (file)
@@ -170,7 +170,7 @@ static void server_status_printf(struct chunk *msg, struct server *s, unsigned o
                        chunk_printf(msg, ", check duration: %ldms", s->check_duration);
        }
 
-       if (xferred > 0) {
+       if (xferred >= 0) {
                if (!(s->state & SRV_RUNNING))
                        chunk_printf(msg, ". %d active and %d backup servers left.%s"
                                " %d sessions active, %d requeued, %d remaining in queue",