]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] [STATS] swap color sets for active and backup servers
authorWilly Tarreau <w@1wt.eu>
Sat, 6 Jan 2007 23:16:15 +0000 (00:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 7 Jan 2007 01:08:18 +0000 (02:08 +0100)
colors had incidently been swapped during the stats page rewrite.
Thanks to Sin Yu for noticing it.

src/proto_http.c

index 6e9cd88f1596122fb929ddfb80fed0a072f48e89..184d91aa2ea155c38fa2c88cb2e6e0f6c620249e 100644 (file)
@@ -3139,7 +3139,7 @@ int produce_content_stats_proxy(struct session *s, struct proxy *px)
                                     /* errors : request, connect, response */
                                     "<td align=right></td><td align=right>%d</td><td align=right>%d</td>\n"
                                     "",
-                                    (sv->state & SRV_BACKUP) ? "active" : "backup",
+                                    (sv->state & SRV_BACKUP) ? "backup" : "active",
                                     sv_state, sv->id,
                                     sv->nbpend, sv->nbpend_max,
                                     sv->cur_sess, sv->cur_sess_max, sv->maxconn ? ultoa(sv->maxconn) : "-", sv->cum_sess,