Skip to content

Commit

Permalink
#2187: Use proper constant when adding a user note
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable authored and cwschilly committed Sep 20, 2024
1 parent 45beabf commit 0af8aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vt/trace/trace_lite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ void TraceLite::addUserNoteBracketedBeginTime(
logEvent(LogType{begin, begin, type, note, event});

// Save event log for fixing up the end time later
if (event != no_user_event_id) {
if (event != no_trace_event) {
auto* last_trace = getLastTraceEvent();
incomplete_notes_[event].push(last_trace);
}
Expand Down Expand Up @@ -361,7 +361,7 @@ void TraceLite::addUserNoteBracketedEndTime(
);

// Fixup end time of the note
if (event != no_user_event_id) {
if (event != no_trace_event) {
updateNoteEndTime(event, end, &new_note);
}
}
Expand Down

0 comments on commit 0af8aab

Please sign in to comment.