Merge branch 'Fix_calc_thread_status_ramp_time_check' of https://github.com/horshack...
authorJens Axboe <axboe@kernel.dk>
Fri, 3 Mar 2023 17:43:05 +0000 (10:43 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Mar 2023 17:43:05 +0000 (10:43 -0700)
* 'Fix_calc_thread_status_ramp_time_check' of https://github.com/horshack-dpreview/fio:
  Fix --bandwidth-log segmentation fault when numjobs even multiple of 8

tools/fiologparser.py

index 054f1f60784879023fcc31051379a892d8adbed1..708c5d4920ea7ff287d695cc971d1066c48677de 100755 (executable)
@@ -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)