Skip to content

Commit 6936669

Browse files
authored
DPL: fix timePipelined enumeration also for t = 0 (#3001)
1 parent 1b29528 commit 6936669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Framework/Core/src/LifetimeHelpers.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ExpirationHandler::Creator LifetimeHelpers::dataDrivenCreation()
5252

5353
ExpirationHandler::Creator LifetimeHelpers::enumDrivenCreation(size_t start, size_t end, size_t step, size_t inputTimeslice, size_t maxInputTimeslices)
5454
{
55-
auto last = std::make_shared<size_t>(start);
55+
auto last = std::make_shared<size_t>(start + inputTimeslice * step);
5656
return [start, end, step, last, inputTimeslice, maxInputTimeslices](TimesliceIndex& index) -> TimesliceSlot {
5757
for (size_t si = 0; si < index.size(); si++) {
5858
if (*last > end) {
@@ -61,7 +61,7 @@ ExpirationHandler::Creator LifetimeHelpers::enumDrivenCreation(size_t start, siz
6161
auto slot = TimesliceSlot{si};
6262
if (index.isValid(slot) == false) {
6363
TimesliceId timestamp{*last};
64-
*last += step * (maxInputTimeslices + inputTimeslice);
64+
*last += step * maxInputTimeslices;
6565
index.associate(timestamp, slot);
6666
return slot;
6767
}

0 commit comments

Comments
 (0)