Corrected scope of for-loop
authorLars Ekman <lars.g.ekman@est.tech>
Wed, 20 May 2020 09:27:11 +0000 (11:27 +0200)
committerLars Ekman <lars.g.ekman@est.tech>
Wed, 20 May 2020 11:24:34 +0000 (13:24 +0200)
Fixes #989 - fio2gnuplot dont generate clat (raw) plots

Signed-off-by: Lars Ekman <lars.g.ekman@est.tech>
tools/plot/fio2gnuplot

index cc4ea4c74eb47cd6ff4ed2c9dab716986c48d12b..69aa791eb6864e76d3a59c8be90cbf712cdcf369 100755 (executable)
@@ -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: