Skip to content

Commit 257079e

Browse files
committed
Minor fix for unnecessary operations
1 parent 66f5995 commit 257079e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/tracecode/tracecode.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ def validate_traces(input_dir):
108108
if ts and len(ts) >= 1:
109109
ts = float(ts[0])
110110

111-
if oldest_ts:
112-
if ts <= oldest_ts:
111+
if oldest_ts:
112+
if ts <= oldest_ts:
113+
oldest_ts = ts
114+
oldest_pid = pid
115+
else:
113116
oldest_ts = ts
114117
oldest_pid = pid
115-
else:
116-
oldest_ts = ts
117-
oldest_pid = pid
118118

119119
# store a process trace by id
120120
traces[pid] = path

0 commit comments

Comments
 (0)