Repository: ambari Updated Branches: refs/heads/branch-2.0.0 78433c19e -> 8d77bedcb
AMBARI-9774. Start and Test services at enable security shows 100% even though its not completed (onechiporenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8d77bedc Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8d77bedc Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8d77bedc Branch: refs/heads/branch-2.0.0 Commit: 8d77bedcb3fa708f088dd2c66256bac35736a1a9 Parents: 78433c1 Author: Oleg Nechiporenko <onechipore...@apache.org> Authored: Fri Feb 27 19:30:27 2015 +0200 Committer: Oleg Nechiporenko <onechipore...@apache.org> Committed: Sat Feb 28 13:22:18 2015 +0200 ---------------------------------------------------------------------- ambari-web/app/mixins/wizard/wizardProgressPageController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/8d77bedc/ambari-web/app/mixins/wizard/wizardProgressPageController.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/mixins/wizard/wizardProgressPageController.js b/ambari-web/app/mixins/wizard/wizardProgressPageController.js index a5933cb..d7ab5c2 100644 --- a/ambari-web/app/mixins/wizard/wizardProgressPageController.js +++ b/ambari-web/app/mixins/wizard/wizardProgressPageController.js @@ -554,7 +554,7 @@ App.wizardProgressPageControllerMixin = Em.Mixin.create({ + tasks.filterProperty('Tasks.status', 'TIMEDOUT').length; var queuedActions = tasks.filterProperty('Tasks.status', 'QUEUED').length; var inProgressActions = tasks.filterProperty('Tasks.status', 'IN_PROGRESS').length; - var progress = Math.ceil(((queuedActions * 0.09) + (inProgressActions * 0.35) + completedActions ) / actionsPerHost * 100); + var progress = Math.floor(((queuedActions * 0.09) + (inProgressActions * 0.35) + completedActions ) / actionsPerHost * 100); this.get('tasks').findProperty('id', currentTaskId).set('progress', progress); window.setTimeout(function () { self.doPolling();