Explorar o código

AMBARI-12519. Ambari metrics UI: CPU graph is upside down & misleading.(xiwang)

Xi Wang %!s(int64=10) %!d(string=hai) anos
pai
achega
578a35c807

+ 1 - 1
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];
         var seriesData = jsonData.metrics.cpu[name];
         if (seriesData) {
         if (seriesData) {
           var s = this.transformData(seriesData, name);
           var s = this.transformData(seriesData, name);
-          if (name === 'Idle') {
+          if (name.indexOf("Idle") > -1) {
             //CPU idle metric should be the last in series array
             //CPU idle metric should be the last in series array
             idle = s;
             idle = s;
             continue;
             continue;