fix fio2gnuplot to work with new logging format
authorLars Kellogg-Stedman <lars@redhat.com>
Wed, 12 May 2021 22:41:43 +0000 (18:41 -0400)
committerLars Kellogg-Stedman <lars@redhat.com>
Wed, 12 May 2021 22:53:04 +0000 (18:53 -0400)
The logging format updates documented in 1a953d97 were never
propagated to fio2gnuplot, which since then has been failing with a
ValueError exception.

This commit explicits limits fio2gnuplot to only reading the first
4 columns in the log file.

Closes #928

tools/plot/fio2gnuplot

index 78ee82fb8025567c1724138ca60ad25a6a4a91b1..d2dc81df9b617d21986dcc8ba594a31c7a67b860 100755 (executable)
@@ -198,7 +198,7 @@ def compute_temp_file(fio_data_file,disk_perf,gnuplot_output_dir, min_time, max_
                        # Index will be used to remember what file was featuring what value
                        index=index+1
 
-                       time, perf, x, block_size = line[1]
+                       time, perf, x, block_size = line[1][:4]
                        if (blk_size == 0):
                                try:
                                        blk_size=int(block_size)