From 103df7ba8a661cb499b94c6c83854fe515f7d117 Mon Sep 17 00:00:00 2001 From: Lars Ekman Date: Wed, 20 May 2020 11:27:11 +0200 Subject: [PATCH] Corrected scope of for-loop Fixes #989 - fio2gnuplot dont generate clat (raw) plots Signed-off-by: Lars Ekman --- tools/plot/fio2gnuplot | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: -- 2.25.1