You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2014/08/04 22:59:10 UTC

git commit: AMBARI-6724. Unable to display Job Charts. (jaimin)

Repository: ambari
Updated Branches:
  refs/heads/trunk f67cd91db -> a37d44222


AMBARI-6724. Unable to display Job Charts. (jaimin)


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

Branch: refs/heads/trunk
Commit: a37d44222e318dc0054d9abb94b60ce01c03b79e
Parents: f67cd91
Author: Jaimin Jetly <ja...@hortonworks.com>
Authored: Mon Aug 4 13:58:48 2014 -0700
Committer: Jaimin Jetly <ja...@hortonworks.com>
Committed: Mon Aug 4 13:58:48 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/views/main/apps/item/dag_view.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a37d4422/ambari-web/app/views/main/apps/item/dag_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/apps/item/dag_view.js b/ambari-web/app/views/main/apps/item/dag_view.js
index 6000b12..6be2715 100644
--- a/ambari-web/app/views/main/apps/item/dag_view.js
+++ b/ambari-web/app/views/main/apps/item/dag_view.js
@@ -106,7 +106,7 @@ App.MainAppsItemDagView = Em.View.extend({
   allreduce:false,
 
   updateTimeline:function () {
-    var url = App.get('testMode') ? '/data/apps/jobs/timeline.json' : App.get('apiPrefix') + "/jobhistory/task?workflowId=" + this.get('controller.content.id') + "&width=" + this.$().width() + "&startTime=" + this.get('controller.content.startTime') + "&endTime=" + (this.get('controller.content.startTime')+this.get('controller.content.elapsedTime'));
+    var url = App.get('testMode') ? '/data/apps/jobs/timeline.json' : App.get('apiPrefix') + "/jobhistory/task?workflowId=" + this.get('controller.content.id') + "&width=" + Math.ceil(this.$().width()) + "&startTime=" + this.get('controller.content.startTime') + "&endTime=" + (this.get('controller.content.startTime')+this.get('controller.content.elapsedTime'));
     var mapper = App.jobTimeLineMapper;
     mapper.set('model', this);
     var self = this;
@@ -115,7 +115,7 @@ App.MainAppsItemDagView = Em.View.extend({
         self.set('loadJobTimeline', true);
       }
     });
-    url = App.get('testMode') ? '/data/apps/jobs/timeline.json' : App.get('apiPrefix') + "/jobhistory/task?width=" + this.$().width() + "&startTime=" + this.get('controller.content.startTime') + "&endTime=" + (this.get('controller.content.startTime')+this.get('controller.content.elapsedTime'));
+    url = App.get('testMode') ? '/data/apps/jobs/timeline.json' : App.get('apiPrefix') + "/jobhistory/task?width=" + Math.ceil(this.$().width()) + "&startTime=" + this.get('controller.content.startTime') + "&endTime=" + (this.get('controller.content.startTime')+this.get('controller.content.elapsedTime'));
     var mapper = App.taskTimeLineMapper;
     mapper.set('model', this);
     var self = this;