cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raj...@apache.org
Subject [27/48] git commit: updated refs/heads/master to f1a6490
Date Mon, 06 Jul 2015 06:30:04 GMT
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 <abhinandan.prateek@shapeblue.com>
Authored: Thu May 21 09:24:03 2015 +0530
Committer: Abhinandan Prateek <abhinandan.prateek@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


Mime
View raw message