incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject svn commit: r1431823 - in /incubator/ambari/trunk: CHANGES.txt ambari-web/app/views/main/charts/heatmap/heatmap_host.js
Date Fri, 11 Jan 2013 02:29:09 GMT
Author: yusaku
Date: Fri Jan 11 02:29:09 2013
New Revision: 1431823

URL: http://svn.apache.org/viewvc?rev=1431823&view=rev
Log:
AMBARI-1123. Ambari heatmaps and host information shows infinity for disk space used. (Srimanth
Gunturi via yusaku)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/ambari-web/app/views/main/charts/heatmap/heatmap_host.js

Modified: incubator/ambari/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1431823&r1=1431822&r2=1431823&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Fri Jan 11 02:29:09 2013
@@ -675,6 +675,9 @@ AMBARI-666 branch (unreleased changes)
 
   BUG FIXES
 
+  AMBARI-1123. Ambari heatmaps and host information shows infinity for disk
+  space used. (Srimanth Gunturi via yusaku)
+
   AMBARI-1141. In some cases, clicking "Register and Confirm" button does
   not do anything. (Arun Kandregula via yusaku)
  

Modified: incubator/ambari/trunk/ambari-web/app/views/main/charts/heatmap/heatmap_host.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/charts/heatmap/heatmap_host.js?rev=1431823&r1=1431822&r2=1431823&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/charts/heatmap/heatmap_host.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/charts/heatmap/heatmap_host.js Fri Jan
11 02:29:09 2013
@@ -37,7 +37,7 @@ App.MainChartsHeatmapHostView = Em.View.
     $.each(view.get('details'), function(i){
       var val = host.get(i);
       if (i == 'diskUsage') {
-        if (val == undefined || isNaN(val)) {
+        if (val == undefined || isNaN(val) || val == Infinity || val == -Infinity) {
           val = null;
         } else {
           val = val.toFixed(1);
@@ -49,7 +49,7 @@ App.MainChartsHeatmapHostView = Em.View.
           val = val.toFixed(1);
         }
       } else if (i == 'memoryUsage') {
-        if (val == undefined || isNaN(val)) {
+        if (val == undefined || isNaN(val) || val == Infinity || val == -Infinity) {
           val = null;
         } else {
           val = val.toFixed(1);



Mime
View raw message