GUACAMOLE-102: Get rid of arbitary constant in compare method for WLC algorithm.
This commit is contained in:
1 parent
f22852721c
commit
4033e097c7
1 file changed
+1
-1
+1
-1
@@ -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