From 01cbd4d913d4eed56dc51256cddfe327b9c28d4c Mon Sep 17 00:00:00 2001 From: Thomas Findelkind Date: Thu, 17 Sep 2015 19:42:34 +0200 Subject: [PATCH] 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 --- tools/plot/fio2gnuplot | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/plot/fio2gnuplot b/tools/plot/fio2gnuplot index 1aef047a..1009ae0a 100755 --- a/tools/plot/fio2gnuplot +++ b/tools/plot/fio2gnuplot @@ -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) -- 2.25.1