GUACAMOLE-102: Get rid of arbitary constant in compare method for WLC algorithm.

This commit is contained in:
Nick Couchman
2017-06-02 14:43:11 -04:00
committed by Nick Couchman
parent f22852721c
commit 4033e097c7

View File

@@ -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);
}