]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stats: fix inversion of the report of a check in progress
authorWilly Tarreau <w@1wt.eu>
Fri, 23 Nov 2012 23:20:24 +0000 (00:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Nov 2012 23:20:24 +0000 (00:20 +0100)
Recent fix for health checks 5a78f36d inverted the condition to display
a "*" in front of the check status on the stats page.

src/dumpstats.c

index 988f94c7fd71a4574721d88f0fbc991699c0cf21..7c9365b8274f3acfbfe5bb356775204e0f2df09d 100644 (file)
@@ -2933,7 +2933,7 @@ static int stats_dump_proxy(struct stream_interface *si, struct proxy *px, struc
                                        }
 
                                        chunk_appendf(&trash, "\"><u> %s%s",
-                                               (sv->state & SRV_CHK_RUNNING) ? "" : "* ",
+                                               (sv->state & SRV_CHK_RUNNING) ? "* " : "",
                                                get_check_status_info(sv->check.status));
 
                                        if (sv->check.status >= HCHK_STATUS_L57DATA)