Repository: cloudstack Updated Branches: refs/heads/4.4 11d99b0ca -> e63f2bdf7
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/e63f2bdf Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e63f2bdf Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e63f2bdf Branch: refs/heads/4.4 Commit: e63f2bdf707da5fdd2b1a083790a9a9b8c5b20d7 Parents: 11d99b0 Author: Abhinandan Prateek <[email protected]> Authored: Thu May 21 09:24:03 2015 +0530 Committer: Milamber <[email protected]> Committed: Fri May 22 08:03:10 2015 +0100 ---------------------------------------------------------------------- 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/e63f2bdf/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 c9d25a0..10e9228 100644 --- a/core/src/com/cloud/agent/api/HostStatsEntry.java +++ b/core/src/com/cloud/agent/api/HostStatsEntry.java @@ -98,7 +98,7 @@ public class HostStatsEntry implements HostStats { @Override public double getUsedMemory() { - return (totalMemoryKBs - freeMemoryKBs); + return (totalMemoryKBs - freeMemoryKBs) * 1024; } @Override
