Repository: ambari Updated Branches: refs/heads/trunk 32fc073fb -> 71486fb4a
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/71486fb4 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/71486fb4 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/71486fb4 Branch: refs/heads/trunk Commit: 71486fb4a3450da9bf8d40cf88b32c3b06f420fb Parents: 32fc073 Author: Oleg Nechiporenko <onechipore...@apache.org> Authored: Fri Feb 27 19:28:44 2015 +0200 Committer: Oleg Nechiporenko <onechipore...@apache.org> Committed: Sat Feb 28 13:27:37 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/71486fb4/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();