aggregator/disk.rb
## Attempt to load the next file, or reload the first file accessed
#  TODO: an optimization would be to check the size first, and skip
#        this logic if there's only one file...
Attempt to load the next file, or reload the first file accessed
TODO: an optimization would be to check the size first, and skip
this logic if there's only one file
Attempt to load the next file or reload the first file accessed TODO : an optimization would be to check the size first and skip this logic if there ' s only one file
def next_file
    @current_file_index += 1
    if @current_file_index >= @files.length
      @current_file = @files.first
      @current_file_index = 0
    else
      @current_file = @files[@current_file_index]
    end
    @data = load_file(@current_file)
  end
def next_file @current_file_index += 1 if @current_file_index >= @files . length @current_file = @files . first @current_file_index = 0 else @current_file = @files [ @current_file_index ] end @data = load_file ( @current_file ) end
Attempt to load the next file, or reload the first file accessed
TODO: an optimization would be to check the size first, and skip
this logic if there's only one file...
Attempt to load the next file or reload the first file accessed TODO : an optimization would be to check the size first and skip this logic if there ' s only one file ...