mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +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.
|
* Sets the connection weight.
|
||||||
*
|
*
|
||||||
* @param connectionWeight
|
* @param connectionWeight
|
||||||
* The weight of the connection. null is acceptable, negative values
|
* The weight of the connection. null is acceptable, and anything
|
||||||
* indicate that the connection should not be used.
|
* less than one will prevent the connection from being used.
|
||||||
*/
|
*/
|
||||||
public void setConnectionWeight(Integer connectionWeight) {
|
public void setConnectionWeight(Integer connectionWeight) {
|
||||||
this.connectionWeight = connectionWeight;
|
this.connectionWeight = connectionWeight;
|
||||||
|
@@ -216,7 +216,7 @@ public class RestrictedGuacamoleTunnelService
|
|||||||
// Return the first unreserved connection
|
// Return the first unreserved connection
|
||||||
for (ModeledConnection connection : sortedConnections) {
|
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) {
|
if (connection.getConnectionWeight() < 1) {
|
||||||
logger.debug("Weight for {} is < 1, connection will be skipped.", connection.getName());
|
logger.debug("Weight for {} is < 1, connection will be skipped.", connection.getName());
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user