From: Alexander Patrakov Date: Wed, 22 Feb 2023 08:35:59 +0000 (+0800) Subject: fix fiologparser.py to work with new logging format X-Git-Tag: fio-3.34~5^2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=5f2a90b84dd63deddb2e3019c769e21e216c1ee5 fix fiologparser.py to work with new logging format The logging format updates documented in 1a953d97 were never propagated to fiologparser.py, which since then has been failing with a ValueError exception. This commit explicitly limits fiologparser.py to only reading the first 2 columns in the log file, because they are the only columns used. This is similar to issue #928. Signed-off-by: Alexander Patrakov --- diff --git a/tools/fiologparser.py b/tools/fiologparser.py index 054f1f60..708c5d49 100755 --- a/tools/fiologparser.py +++ b/tools/fiologparser.py @@ -166,7 +166,7 @@ class TimeSeries(object): f = open(fn, 'r') p_time = 0 for line in f: - (time, value, foo, bar) = line.rstrip('\r\n').rsplit(', ') + (time, value) = line.rstrip('\r\n').rsplit(', ')[:2] self.add_sample(p_time, int(time), int(value)) p_time = int(time)