mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-13 07:43:32 -05: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
1 changed files with 1 additions and 3 deletions
|
|
@ -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 a new issue