فهرست منبع

AMBARI-1946. Heatmap memory should not include cached memory as part of "used". (Jeff Sposetti via yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1468580 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 سال پیش
والد
کامیت
b5ff732111
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 3 0
      CHANGES.txt
  2. 1 1
      ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_memoryused.js

+ 3 - 0
CHANGES.txt

@@ -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. 

+ 1 - 1
ambari-web/app/controllers/main/charts/heatmap_metrics/heatmap_metric_memoryused.js

@@ -51,7 +51,7 @@ App.MainChartHeatmapMemoryUsedMetric = App.MainChartHeatmapMetric.extend({
         });
         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;