Repository: cloudstack Updated Branches: refs/heads/4.5 79ddd7434 -> 258d9b19d
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/4.5 Commit: 258d9b19ddd76a03aa67c61d6c309b8b39672f85 Parents: 79ddd74 Author: Abhinandan Prateek <abhinandan.prat...@shapeblue.com> Authored: Thu May 21 09:24:03 2015 +0530 Committer: Abhinandan Prateek <abhinandan.prat...@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