mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-26 15:40:32 +00:00
OPTIM: stats: avoid the calculation of a useless link on tracking servers in maintenance
Commit f465994198
removed the "via" link when a tracking server is in maintenance, but
still calculated an empty link that no one can use. We can safely remove it.
This commit is contained in:
parent
d5de76a25b
commit
c7fa7db7ce
@ -2983,9 +2983,7 @@ static int stats_dump_sv_stats(struct stream_interface *si, struct proxy *px, in
|
||||
}
|
||||
else if (sv != ref) {
|
||||
if (sv->state & SRV_MAINTAIN)
|
||||
chunk_appendf(&trash,
|
||||
"<td class=ac colspan=3><a class=lfsb href=\"#%s/%s\"></a></td>",
|
||||
ref->proxy->id, ref->id);
|
||||
chunk_appendf(&trash, "<td class=ac colspan=3></td>");
|
||||
else
|
||||
chunk_appendf(&trash,
|
||||
"<td class=ac colspan=3><a class=lfsb href=\"#%s/%s\">via %s/%s</a></td>",
|
||||
|
Loading…
Reference in New Issue
Block a user