Skip to content

Commit 7a9ed8c

Browse files
davidrohrmartenole
authored andcommitted
DPL: Fix debug message, which was showing the previous slot
1 parent 4344c80 commit 7a9ed8c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Framework/Core/src/TimesliceIndex.cxx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,16 @@ TimesliceIndex::OldestOutputInfo TimesliceIndex::updateOldestPossibleOutput()
208208
}
209209
}
210210
O2_SIGNPOST_ID_GENERATE(tid, timeslice_index);
211-
if (changed && mOldestPossibleOutput.timeslice.value != result.timeslice.value) {
212-
O2_SIGNPOST_EVENT_EMIT(timeslice_index, tid, "updateOldestPossibleOutput", "Oldest possible output %zu due to %{public}s %zu",
213-
result.timeslice.value,
214-
result.channel.value == -1 ? "slot" : "channel",
215-
result.channel.value == -1 ? mOldestPossibleOutput.slot.index : mOldestPossibleOutput.channel.value);
216-
} else if (mOldestPossibleOutput.timeslice.value != result.timeslice.value) {
217-
O2_SIGNPOST_EVENT_EMIT(timeslice_index, tid, "updateOldestPossibleOutput", "Oldest possible output updated from oldest Input : %zu --> %zu",
218-
mOldestPossibleOutput.timeslice.value, result.timeslice.value);
211+
if (mOldestPossibleOutput.timeslice.value != result.timeslice.value) {
212+
if (changed) {
213+
O2_SIGNPOST_EVENT_EMIT(timeslice_index, tid, "updateOldestPossibleOutput", "Oldest possible output %zu (before %zu) due to %s %zu",
214+
result.timeslice.value, mOldestPossibleOutput.timeslice.value,
215+
result.channel.value == -1 ? "slot" : "channel",
216+
result.channel.value == -1 ? result.slot.index : result.channel.value);
217+
} else {
218+
O2_SIGNPOST_EVENT_EMIT(timeslice_index, tid, "updateOldestPossibleOutput", "Oldest possible output updated from oldest Input : %zu --> %zu",
219+
mOldestPossibleOutput.timeslice.value, result.timeslice.value);
220+
}
219221
}
220222
mOldestPossibleOutput = result;
221223

0 commit comments

Comments
 (0)