You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2014/01/30 23:41:30 UTC

[39/50] [abbrv] git commit: updated refs/heads/ui-restyle to 849d601

findbugs: compare strings with equals()

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/fef2daf5
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/fef2daf5
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/fef2daf5

Branch: refs/heads/ui-restyle
Commit: fef2daf5d4aeef80e8780fc1605c7bee6ecf3849
Parents: 1c4bbec
Author: Daan Hoogland <da...@onecht.net>
Authored: Wed Jan 29 12:06:34 2014 +0100
Committer: Daan Hoogland <da...@onecht.net>
Committed: Wed Jan 29 12:06:34 2014 +0100

----------------------------------------------------------------------
 server/src/com/cloud/server/StatsCollector.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/fef2daf5/server/src/com/cloud/server/StatsCollector.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/server/StatsCollector.java b/server/src/com/cloud/server/StatsCollector.java
index 601ab12..548587c 100755
--- a/server/src/com/cloud/server/StatsCollector.java
+++ b/server/src/com/cloud/server/StatsCollector.java
@@ -737,7 +737,7 @@ public class StatsCollector extends ManagerBase implements ComponentMethodInterc
                                             }
 
                                             String counterName = getCounternamebyCondition(conditionId.longValue());
-                                            if (counterName == Counter.Source.memory.toString()) {
+                                            if (Counter.Source.memory.toString().equals(counterName)) {
                                                 // calculate memory in percent
                                                 Long profileId = asGroup.getProfileId();
                                                 AutoScaleVmProfileVO profileVo = _asProfileDao.findById(profileId);