We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ee9831 commit 90e156aCopy full SHA for 90e156a
1 file changed
lib/benchmark_runner.rb
@@ -9,9 +9,9 @@ module BenchmarkRunner
9
module_function
10
11
# Find the first available file number for output files
12
- def free_file_no(prefix)
+ def free_file_no(directory)
13
(1..).each do |file_no|
14
- out_path = File.join(prefix, "output_%03d.csv" % file_no)
+ out_path = File.join(directory, "output_%03d.csv" % file_no)
15
return file_no unless File.exist?(out_path)
16
end
17
0 commit comments