commit | 2754fbcfd6ce7f812a1c1b59dc8ddb0a44721f95 | [log] [tgz] |
---|---|---|
author | Nenad Merdanovic <nmerdan@haproxy.com> | Sun Mar 12 21:56:56 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Mar 13 18:26:05 2017 +0100 |
tree | 5b218ac4c0e0f72cb141ade6b829cf110e24acd2 | |
parent | b7e7c4720ad06aba630c92a7d94b891b93f66df6 [diff] |
CLEANUP: Replace repeated code to count usable servers with be_usable_srv() 2 places were using an open-coded implementation of this function to count available servers. Note that the avg_queue_size() fetch didn't check that the proxy was in STOPPED state so it would possibly return a wrong server count here but that wouldn't impact the returned value. Signed-off-by: Nenad Merdanovic <nmerdan@haproxy.com>