mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-102: Clarification for comments on weights less than 1.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user