Skip to content

Commit a8cefa4

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

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

AUTHORS.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
The following organization or individuals have contributed to TraceCode:
22

33
- nexB Inc.
4-
- Philippe Ombredanne
4+
- Philippe Ombredanne
5+
- Dong-hee Na

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)