From: Lars Ekman Date: Wed, 20 May 2020 09:27:11 +0000 (+0200) Subject: Corrected scope of for-loop X-Git-Tag: fio-3.20~9^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=103df7ba8a661cb499b94c6c83854fe515f7d117;p=fio.git Corrected scope of for-loop Fixes #989 - fio2gnuplot dont generate clat (raw) plots Signed-off-by: Lars Ekman --- diff --git a/tools/plot/fio2gnuplot b/tools/plot/fio2gnuplot index cc4ea4c7..69aa791e 100755 --- a/tools/plot/fio2gnuplot +++ b/tools/plot/fio2gnuplot @@ -93,10 +93,10 @@ set style line 1 lt 1 lw 3 pt 3 linecolor rgb "green" compare_smooth.write("plot %s w l ls 1 ti 'Global average value (%.2f)'" % (global_avg,global_avg)); compare_trend.write("plot %s w l ls 1 ti 'Global average value (%.2f)'" % (global_avg,global_avg)); - pos=0 - # Let's create a temporary file for each selected fio file - for file in fio_data_file: - tmp_filename = "gnuplot_temp_file.%d" % pos + pos=0 + # Let's create a temporary file for each selected fio file + for file in fio_data_file: + tmp_filename = "gnuplot_temp_file.%d" % pos # Plotting comparing graphs doesn't have a meaning unless if there is at least 2 traces if len(fio_data_file) > 1: