mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-102: Get rid of arbitary constant in compare method for WLC algorithm.
This commit is contained in:
committed by
Nick Couchman
parent
f22852721c
commit
4033e097c7
@@ -207,7 +207,7 @@ public class RestrictedGuacamoleTunnelService
|
||||
int connsA = getActiveConnections(a).size() + 1;
|
||||
int connsB = getActiveConnections(b).size() + 1;
|
||||
|
||||
return (connsA * 10000 / weightA) - (connsB * 10000 / weightB);
|
||||
return (connsA * weightB) - (connsB * weightA);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user