Repository: stratos Updated Branches: refs/heads/master 0984bcef2 -> 600dceb8d
Return correct value for getActiveInstanceCount in ClusterLevelPartitionContext Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/600dceb8 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/600dceb8 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/600dceb8 Branch: refs/heads/master Commit: 600dceb8d2d4089e52e17c9c8f4180f4db648356 Parents: 0984bce Author: Lahiru Sandaruwan <[email protected]> Authored: Mon Dec 1 22:02:53 2014 +0530 Committer: Lahiru Sandaruwan <[email protected]> Committed: Mon Dec 1 22:02:53 2014 +0530 ---------------------------------------------------------------------- .../context/partition/ClusterLevelPartitionContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/600dceb8/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java index 1a6736e..ed88117 100644 --- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java +++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java @@ -385,8 +385,8 @@ public class ClusterLevelPartitionContext extends PartitionContext implements Se @Override public int getActiveInstanceCount() { - //return active cluster member count - return 0; + + return getNonTerminatedMemberCount(); }
