Skip to content

Commit

Permalink
Improved TRACE severity
Browse files Browse the repository at this point in the history
  • Loading branch information
rrivera747 committed Jan 6, 2025
2 parents c6ef325 + 5175abd commit 6b901ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions artdaq-mu2e/Generators/Mu2eSubEventReceiver_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ bool mu2e::Mu2eSubEventReceiver::getNextDTCFragment(artdaq::FragmentPtrs& frags,
auto fragment_timestamp = ts_out.GetEventWindowTag(true);
auto timestamp_to_use = fragment_timestamp + current_timestamp_offset_;

if (last_fragment_timestamp_ != size_t(-1) && last_fragment_timestamp_ + 1 != timestamp_to_use)
if (last_fragment_timestamp != size_t(-1) && last_fragment_timestamp + 1 != timestamp_to_use)
{
TLOG(TLVL_DEBUG+19) << "NOT INCREMENTAL timestamp new=" << timestamp_to_use << " vs old=" << last_fragment_timestamp_;
}
Expand All @@ -374,9 +374,9 @@ bool mu2e::Mu2eSubEventReceiver::getNextDTCFragment(artdaq::FragmentPtrs& frags,
first_timestamp_seen_ = fragment_timestamp;
}

if (timestamp_to_use < last_fragment_timestamp_)
if (timestamp_to_use < last_fragment_timestamp)
{
current_timestamp_offset_ = last_fragment_timestamp_ - fragment_timestamp + 1; // So that this == last_fragment_timestamp_ + 1
current_timestamp_offset_ = last_fragment_timestamp - fragment_timestamp + 1; // So that this == last_fragment_timestamp + 1
timestamp_to_use = fragment_timestamp + current_timestamp_offset_;
}
last_fragment_timestamp_ = timestamp_to_use;
Expand Down

0 comments on commit 6b901ea

Please sign in to comment.