summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kellogg-Stedman <lars@redhat.com>2021-05-12 18:41:43 -0400
committerLars Kellogg-Stedman <lars@redhat.com>2021-05-12 18:53:04 -0400
commit2984a4fcedcdc5536b2559d634694fb8fecf40c4 (patch)
tree8cb33a7db4f2366fccd922ef9602bdef01fe910a
parent30bec59eab3908b681cbc2866179f7166a849c83 (diff)
downloadfio-2984a4fcedcdc5536b2559d634694fb8fecf40c4.tar.gz
fio-2984a4fcedcdc5536b2559d634694fb8fecf40c4.tar.bz2
fix fio2gnuplot to work with new logging format
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
-rwxr-xr-xtools/plot/fio2gnuplot2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/plot/fio2gnuplot b/tools/plot/fio2gnuplot
index 78ee82fb..d2dc81df 100755
--- a/tools/plot/fio2gnuplot
+++ b/tools/plot/fio2gnuplot
@@ -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)