Skip to content

Commit 2b3269a

Browse files
committed
DPL: correct oldest possible timeframe for readout-proxy
The oldest possible timeframe is not the one we just sent, but the one after.
1 parent 195b976 commit 2b3269a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Framework/Core/src/ExternalFairMQDeviceProxy.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ void sendOnChannel(FairMQDevice& device, FairMQParts& messages, std::string cons
100100
}
101101
}
102102
if (timeSlice != (size_t)-1) {
103-
o2::framework::DataProcessingHelpers::sendOldestPossibleTimeframe(device.GetChannel(channel, 0), timeSlice);
103+
// We propagate the information about the oldest possible timeframe downstream.
104+
// Notice that the oldest possible timeframe is not the one we just sent, but the one
105+
// after because we know we will not send twice the same timeframe.
106+
o2::framework::DataProcessingHelpers::sendOldestPossibleTimeframe(device.GetChannel(channel, 0), timeSlice + 1);
104107
}
105108
// FIXME: we need a better logic for avoiding message spam
106109
if (timeout > 1 && timeout <= maxTimeout) {

0 commit comments

Comments
 (0)