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:15:16 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/578a35c8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/578a35c8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/578a35c8

Branch: refs/heads/trunk
Commit: 578a35c80787d914c784bf94075e43b58bc4d388
Parents: a81df33
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:13:42 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/578a35c8/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