Permalink
Browse files

Update fio2gnuplot

Should fix the "No log file..." with default pattern -b and -i and
 user generated a log file per thread/numjob with per_numjobs_log=1
  • Loading branch information...
Tfindelkind committed Sep 17, 2015
1 parent 5193b4e commit 01cbd4d913d4eed56dc51256cddfe327b9c28d4c
Showing with 9 additions and 1 deletion.
  1. +9 −1 tools/plot/fio2gnuplot
View
@@ -458,7 +458,15 @@ def main(argv):
fio_data_file=find_file('.',pattern)
if len(fio_data_file) == 0:
print "No log file found with pattern %s!" % pattern
sys.exit(1)
# Try numjob log file format if per_numjob_logs=1
if (pattern == '*_bw.log'):
fio_data_file=find_file('.','*_bw.*.log')
if (pattern == '*_iops.log'):
fio_data_file=find_file('.','*_iops.*.log')
if len(fio_data_file) == 0:
sys.exit(1)
else:
print "Using log file per job format instead"
else:
print "%d files Selected with pattern '%s'" % (len(fio_data_file), pattern)

0 comments on commit 01cbd4d

Please sign in to comment.