mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-19 20:27:01 +00:00
BUG/MINOR: stats: Fix color of draining servers on stats page
This patch fixes #53 where it was noticed that when an active server is set to DRAIN it no longer has the color blue reflected within the stats page. This patch addresses that and adds the color back to drain. It's to be noted that backup servers are configured to have an orange color when they are draining. Should be backported as far as 1.7.
This commit is contained in:
parent
ce7b00f926
commit
b428517fee
@ -912,6 +912,9 @@ static int stats_dump_fields_html(struct buffer *out,
|
||||
else if (strcmp(field_str(stats, ST_F_STATUS), "DOWN ") == 0) {
|
||||
style = "going_up";
|
||||
}
|
||||
else if (strcmp(field_str(stats, ST_F_STATUS), "DRAIN") == 0) {
|
||||
style = "draining";
|
||||
}
|
||||
else if (strcmp(field_str(stats, ST_F_STATUS), "NOLB ") == 0) {
|
||||
style = "going_down";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user