Skip to content

Commit

Permalink
Fixed default sleep time
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Xia committed Feb 27, 2012
1 parent 40910b0 commit 2fc87e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/coursera_client.rb
Expand Up @@ -28,7 +28,7 @@ def initialize(conf_name=nil)
@api_key = conf['api_key']
@controller = CourseraController.new(@endpoint, @api_key)
@halt = conf['halt'] == 'false' ? false : true
@sleep_duration = conf['sleep_duration'] || 5*60 # in seconds
@sleep_duration = conf['sleep_duration'].nil? ? 5*60 : conf['sleep_duration'].to_i # in seconds

# Load configuration file for assignment_id->spec map
# We assume that the keys are also the assignment_part_sids, as well as the queue_ids
Expand Down

0 comments on commit 2fc87e0

Please sign in to comment.