Skip to content

Commit

Permalink
Merge pull request #377 from chanijjani/fix-adr-rq
Browse files Browse the repository at this point in the history
Change ADR_RQ to ADR_QR for correct line drawing in trace_svg.html
  • Loading branch information
edwardalee authored Mar 2, 2024
2 parents 8757989 + adb753d commit 406b1bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/tracing/visualization/fedsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
# Events matching at the sender and receiver ends depend on whether they are tagged
# (the elapsed logical time and microstep have to be the same) or not.
# Set of tagged events (messages)
non_tagged_messages = {'FED_ID', 'ACK', 'RESIGN', 'FAILED', 'REJECT', 'ADR_RQ', 'ADR_AD', 'MSG', 'P2P_MSG'}
non_tagged_messages = {'FED_ID', 'ACK', 'RESIGN', 'FAILED', 'REJECT', 'ADR_QR', 'ADR_AD', 'MSG', 'P2P_MSG'}


################################################################################
Expand Down Expand Up @@ -672,7 +672,7 @@ def get_and_convert_lft_files(rti_lft_file, federates_lft_files, start_time, end
# FIXME: Using microseconds is hardwired here.
physical_time = f'{int(row["physical_time"]/1000):,}'

if (row['event'] in {'FED_ID', 'ACK', 'FAILED', 'REJECT', 'ADR_RQ', 'ADR_AD', 'MSG', 'P2P_MSG'}):
if (row['event'] in {'FED_ID', 'ACK', 'FAILED', 'REJECT', 'ADR_QR', 'ADR_AD', 'MSG', 'P2P_MSG'}):
label = row['event']
else:
label = row['event'] + '(' + f'{int(row["logical_time"]):,}' + ', ' + str(row['microstep']) + ')'
Expand Down

0 comments on commit 406b1bc

Please sign in to comment.