Author: yusaku
Date: Tue Apr 16 20:00:15 2013
New Revision: 1468580
URL: http://svn.apache.org/r1468580
Log:
AMBARI-1946. Heatmap memory should not include cached memory as part of
"used". (Jeff Sposetti via yusaku)
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_memoryused.js
Modified: incubator/ambari/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1468580&r1=1468579&r2=1468580&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Tue Apr 16 20:00:15 2013
@@ -745,6 +745,9 @@ Trunk (unreleased changes):
BUG FIXES
+ AMBARI-1946. Heatmap memory should not include cached memory as part of
+ "used". (Jeff Sposetti via yusaku)
+
AMBARI-1944. All Service Smoke tests fail when run with service start.
(swagle)
AMBARI-1939. Make service restart feedback based on supports functionality.
Modified:
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_memoryused.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_memoryused.js?rev=1468580&r1=1468579&r2=1468580&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_memoryused.js
(original)
+++
incubator/ambari/trunk/ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_memoryused.js
Tue Apr 16 20:00:15 2013
@@ -51,7 +51,7 @@ App.MainChartHeatmapMemoryUsedMetric = A
});
if (value != null) {
var total = value.mem_total;
- var used = value.mem_total - value.mem_free;
+ var used = value.mem_total - value.mem_free - value.mem_cached;
value = ((used * 100) / total).toFixed(1);
var hostName = item.Hosts.host_name;
hostToValueMap[hostName] = value;