From 60c106a07d76bc582a91e1d1ceab44be775b2cd3 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 24 Jun 2020 16:59:44 -0500 Subject: [PATCH] JSON start point fix in multiproc usecase Change-Id: I84317af41ec0828f08bb2d45803515738167e77a --- bin/tblextr.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/tblextr.py b/bin/tblextr.py index a8ed23fb96..01817883f9 100755 --- a/bin/tblextr.py +++ b/bin/tblextr.py @@ -572,8 +572,12 @@ csvfile = '' begin_ts_file = indir + '/begin_ts_file.txt' if os.path.isfile(begin_ts_file): with open(begin_ts_file, mode='r') as fd: - START_US=int(fd.readline()) / 1000 - print('Appilcation START-ts found (' + str(START_US) + 'us)') + ind = 0 + for line in fd.readlines(): + val = int(line) / 1000 + if ind == 0 or val < START_US: START_US = val + ind += 1 + print('START timestamp found (' + str(START_US) + 'us)') if re.search(r'\.csv$', outfile): csvfile = outfile