Skip to content

Commit d56f2a1

Browse files
committed
Use DataSetReference in Sampler
1 parent 952ac4d commit d56f2a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/TaskDevice.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void TaskDevice::monitorCycle()
153153
auto end = start + seconds(mTaskConfig.cycleDurationSeconds);
154154
int numberBlocks = 0;
155155
while (system_clock::now() < end) {
156-
std::vector<std::shared_ptr<DataBlockContainer>> *block = mSampler->getData(100);
156+
DataSetReference block = mSampler->getData(100);
157157
if (block) {
158158
mTask->monitorDataBlock(*block);
159159
mSampler->releaseData(); // invalids the block !!!

0 commit comments

Comments
 (0)