lib/omgili_aggregator.rb
# Splits the list into parts to be divided among threads.
Splits the list into parts to be divided among threads.
Splits the list into parts to be divided among threads .
def split_download_list(files_to_download, num)
  split_size = (files_to_download.length / num.to_f).ceil
  files_to_download.each_slice(split_size).to_a
end
def split_download_list ( files_to_download , num ) split_size = ( files_to_download . length / num . to_f ) . ceil files_to_download . each_slice ( split_size ) . to_a end
Splits the list into parts to be divided among threads.
Splits the list into parts to be divided among threads .
files_to_download
<not_specific>
num
<not_specific>