diff --git a/slsDetectorSoftware/src/Detector.cpp b/slsDetectorSoftware/src/Detector.cpp index 2f59c717d..5819ce8d8 100644 --- a/slsDetectorSoftware/src/Detector.cpp +++ b/slsDetectorSoftware/src/Detector.cpp @@ -1121,13 +1121,11 @@ void Detector::updateRxRateCorrections() { // get tau from all modules and send to Rx index 0 if (getDetectorType().squash() == defs::EIGER) { if (getUseReceiverFlag().squash(false)) { - // convert Result to std::vector - auto retval = getRateCorrection(); - std::vector t(retval.size()); - for (int i = 0; i < (int)retval.size(); ++i) { - t[i] = retval[i].count(); - } - pimpl->Parallel(&Module::sendReceiverRateCorrections, {0}, t); + std::vector dead_times; + for (auto item : getRateCorrection()) + dead_times.push_back(item.count()); + pimpl->Parallel(&Module::sendReceiverRateCorrections, {0}, + dead_times); } } }