The DRAIN status is not inherited between tracked servers, so the stats
page must only use the reported server's status and not the tracked
server's status, otherwise it misleadingly indicates a DRAIN state when
a server tracks a draining server, while this is wrong.
else
sv_state = 2; /* going down */
- if (server_is_draining(svs))
+ if (server_is_draining(sv))
sv_state += 4;
else if (svs->state & SRV_GOINGDOWN)
sv_state += 2;