You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ra...@apache.org on 2015/07/06 08:30:04 UTC

[27/48] git commit: updated refs/heads/master to f1a6490

CLOUDSTACK-8250: host cpu memory used reported incorrectly in host stat


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

Branch: refs/heads/master
Commit: 258d9b19ddd76a03aa67c61d6c309b8b39672f85
Parents: 79ddd74
Author: Abhinandan Prateek <ab...@shapeblue.com>
Authored: Thu May 21 09:24:03 2015 +0530
Committer: Abhinandan Prateek <ab...@shapeblue.com>
Committed: Thu May 21 09:24:03 2015 +0530

----------------------------------------------------------------------
 core/src/com/cloud/agent/api/HostStatsEntry.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/258d9b19/core/src/com/cloud/agent/api/HostStatsEntry.java
----------------------------------------------------------------------
diff --git a/core/src/com/cloud/agent/api/HostStatsEntry.java b/core/src/com/cloud/agent/api/HostStatsEntry.java
index a7eb524..82041a6 100644
--- a/core/src/com/cloud/agent/api/HostStatsEntry.java
+++ b/core/src/com/cloud/agent/api/HostStatsEntry.java
@@ -101,7 +101,7 @@ public class HostStatsEntry implements HostStats {
 
     @Override
     public double getUsedMemory() {
-        return (totalMemoryKBs - freeMemoryKBs);
+        return (totalMemoryKBs - freeMemoryKBs) * 1024;
     }
 
     @Override