Skip to content

Commit f11444b

Browse files
committed
Add a note about why we sort by index and not id.
1 parent 4cd3c8b commit f11444b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/irpmon/irpmon_to_json.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ def communication(self):
328328
combined = self.read.communication()
329329
combined.extend(self.write.communication())
330330

331+
# Irp ids wrap, so sort it by index, which is the order in which the
332+
# irp entries occured in the original log file.
331333
combined.sort(key=lambda x: x[1].index)
332334

333335
# Now we no longer need the irp relations.

0 commit comments

Comments
 (0)