Skip to content

Commit

Permalink
Rename parameter for UtilizationModelDynamic.setMaxResourceUtilization()
Browse files Browse the repository at this point in the history
to conform to documentation.

Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
  • Loading branch information
manoelcampos committed Jun 10, 2022
1 parent c8dff9d commit 6333a1d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,15 @@ public double getMaxResourceUtilization() {
/**
* Sets the maximum amount of resource that will be used.
*
* <p>Such a value can be a percentage in scale from [0 to 1] or an absolute value,
* <p><b>WARNING:</b> Such a value can be a percentage in scale from [0 to 1] or an absolute value,
* depending on the {@link #getUnit()}.</p>
*
* @param maxResourceUsagePercentage the maximum resource usage
* @param maxResourceUsage the maximum resource usage (in percentage or absolut value)
* @return
*/
public final UtilizationModelDynamic setMaxResourceUtilization(final double maxResourceUsagePercentage) {
validateUtilizationField("maxResourceUtilization", maxResourceUsagePercentage, ALMOST_ZERO);
this.maxResourceUtilization = maxResourceUsagePercentage;
public final UtilizationModelDynamic setMaxResourceUtilization(final double maxResourceUsage) {
validateUtilizationField("maxResourceUtilization", maxResourceUsage, ALMOST_ZERO);
this.maxResourceUtilization = maxResourceUsage;
return this;
}

Expand Down

0 comments on commit 6333a1d

Please sign in to comment.