GUACAMOLE-102: Clarification for comments on weights less than 1.
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/955d5fb1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/955d5fb1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/955d5fb1 Branch: refs/heads/master Commit: 955d5fb11f861f0476741a950cbb064150ae9bd4 Parents: 91f7a3e Author: Nick Couchman <[email protected]> Authored: Mon Jun 5 22:37:49 2017 -0400 Committer: Nick Couchman <[email protected]> Committed: Mon Jun 5 22:37:49 2017 -0400 ---------------------------------------------------------------------- .../apache/guacamole/auth/jdbc/connection/ConnectionModel.java | 4 ++-- .../auth/jdbc/tunnel/RestrictedGuacamoleTunnelService.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/955d5fb1/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ConnectionModel.java ---------------------------------------------------------------------- diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ConnectionModel.java b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ConnectionModel.java index 4d28101..92ee91d 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ConnectionModel.java +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ConnectionModel.java @@ -175,8 +175,8 @@ public class ConnectionModel extends ChildObjectModel { * Sets the connection weight. * * @param connectionWeight - * The weight of the connection. null is acceptable, negative values - * indicate that the connection should not be used. + * The weight of the connection. null is acceptable, and anything + * less than one will prevent the connection from being used. */ public void setConnectionWeight(Integer connectionWeight) { this.connectionWeight = connectionWeight; http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/955d5fb1/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 6480ec7..c9999ab 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 @@ -216,7 +216,7 @@ public class RestrictedGuacamoleTunnelService // Return the first unreserved connection for (ModeledConnection connection : sortedConnections) { - // If connection weight is zero or negative, this host is disabled and should not be used. + // If connection weight is less than 1 this host is disabled and should not be used. if (connection.getConnectionWeight() < 1) { logger.debug("Weight for {} is < 1, connection will be skipped.", connection.getName()); continue;
