Format seconds to avoid too long output

This commit is contained in:
hartator 2016-09-15 20:00:35 -05:00
parent 85a9fae671
commit 5696853e23

View File

@ -152,7 +152,7 @@ class WaybackMachineDownloader
threads.each(&:join)
end_time = Time.now
puts
puts "Download complete in #{end_time - start_time}s, saved in #{backup_path} (#{file_list_by_timestamp.size} files)"
puts "Download completed in #{(end_time - start_time).round(2)}s, saved in #{backup_path} (#{file_list_by_timestamp.size} files)"
end
def structure_dir_path dir_path