Repository: cloudstack Updated Branches: refs/heads/master bede3a87a -> 19f3166a3
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/19f3166a Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/19f3166a Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/19f3166a Branch: refs/heads/master Commit: 19f3166a3d0da960543984950187323e5300cae9 Parents: bede3a8 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:26:35 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/19f3166a/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