You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2017/06/07 00:32:33 UTC

[13/28] incubator-guacamole-client git commit: GUACAMOLE-102: Get rid of arbitary constant in compare method for WLC algorithm.

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


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/4033e097
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/4033e097
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/4033e097

Branch: refs/heads/master
Commit: 4033e097c7dcc976af84d3b8684794be7f184786
Parents: f228527
Author: Nick Couchman <vn...@apache.org>
Authored: Fri Jun 2 14:43:11 2017 -0400
Committer: Nick Couchman <ni...@yahoo.com>
Committed: Mon Jun 5 15:34:21 2017 -0400

----------------------------------------------------------------------
 .../auth/jdbc/tunnel/RestrictedGuacamoleTunnelService.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/4033e097/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/tunnel/RestrictedGuacamoleTunnelService.java
----------------------------------------------------------------------
diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/tunnel/RestrictedGuacamoleTunnelService.java b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/tunnel/RestrictedGuacamoleTunnelService.java
index 744d2e8..71d4f7f 100644
--- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/tunnel/RestrictedGuacamoleTunnelService.java
+++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/tunnel/RestrictedGuacamoleTunnelService.java
@@ -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);
 
             }