You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/rule/RuleTasksDelegator.java
+9-2
Original file line number
Diff line number
Diff line change
@@ -370,8 +370,15 @@ public double getLoadAveragePredictedValue(ClusterInstanceContext clusterInstanc
370
370
371
371
publicdoublegetLoadAveragePredictedValue(){
372
372
doubleloadAveragePredicted = 0.0;
373
-
inttotalMemberCount;
374
-
return0;
373
+
inttotalMemberCount = 0;
374
+
375
+
if (totalMemberCount > 0) {
376
+
log.debug("Predicted load average : " + loadAveragePredicted / totalMemberCount);
0 commit comments