This commit is contained in:
Felipe
2025-01-01 12:20:06 +00:00
parent 840c763ee4
commit b38d528656
2 changed files with 1 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ class WaybackMachineDownloader
@exclude_filter = params[:exclude_filter]
@all = params[:all]
@maximum_pages = params[:maximum_pages] ? params[:maximum_pages].to_i : 100
@threads_count = [params[:threads_count].to_i, 1].max # Garante mínimo de 1 thread
@threads_count = [params[:threads_count].to_i, 1].max
@timeout = params[:timeout] || DEFAULT_TIMEOUT
@logger = setup_logger
@failed_downloads = Concurrent::Array.new