ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiw...@apache.org
Subject [2/2] ambari git commit: AMBARI-12519. Ambari metrics UI: CPU graph is upside down & misleading.(xiwang)
Date Thu, 23 Jul 2015 21:20:41 GMT
AMBARI-12519. Ambari metrics UI: CPU graph is upside down & misleading.(xiwang)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/bd9533f6
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/bd9533f6
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/bd9533f6

Branch: refs/heads/branch-2.1
Commit: bd9533f6ea90ca8aa640440dc4f25cc4052a589e
Parents: a259a89
Author: Xi Wang <xiwang@apache.org>
Authored: Thu Jul 23 13:28:41 2015 -0700
Committer: Xi Wang <xiwang@apache.org>
Committed: Thu Jul 23 14:18:05 2015 -0700

----------------------------------------------------------------------
 ambari-web/app/views/main/dashboard/cluster_metrics/cpu.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/bd9533f6/ambari-web/app/views/main/dashboard/cluster_metrics/cpu.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/dashboard/cluster_metrics/cpu.js b/ambari-web/app/views/main/dashboard/cluster_metrics/cpu.js
index b61c07a..73b8f57 100644
--- a/ambari-web/app/views/main/dashboard/cluster_metrics/cpu.js
+++ b/ambari-web/app/views/main/dashboard/cluster_metrics/cpu.js
@@ -43,7 +43,7 @@ App.ChartClusterMetricsCPU = App.ChartLinearTimeView.extend({
         var seriesData = jsonData.metrics.cpu[name];
         if (seriesData) {
           var s = this.transformData(seriesData, name);
-          if (name === 'Idle') {
+          if (name.indexOf("Idle") > -1) {
             //CPU idle metric should be the last in series array
             idle = s;
             continue;


Mime
View raw message