Skip to content

Commit

Permalink
Change the progress intializer location
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedKamal1432 committed Aug 22, 2015
1 parent 0e43d14 commit 187c721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/disk_wizard_controller.rb
Expand Up @@ -92,6 +92,7 @@ def confirmation
# Expected key:values in @params:
# :debug => Integer value(1) if debug mode has selected in fourth step(confirmation), else nil
def progress
Device.progress = 0
debug_mode = params[:debug]
self.user_selections = {debug: debug_mode}
end
Expand All @@ -113,7 +114,6 @@ def process_disk

jobs_queue = JobQueue.new(user_selections.length)
jobs_queue.enqueue({job_name: :pre_checks_job, job_para: {path: path}})
Device.progress = 0

if user_selections['format']
para = {path: path, fs_type: user_selections['fs_type'], label: label}
Expand Down

0 comments on commit 187c721

Please sign in to comment.