Skip to content

Commit 7bae921

Browse files
authored
Fix run number from ECS (string) QC-399 (#472)
* Fix run number from ECS (string) QC-399 * format
1 parent 544b2ac commit 7bae921

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Framework/src/TaskRunner.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ void TaskRunner::endOfStream(framework::EndOfStreamContext& eosContext)
219219
void TaskRunner::start(const ConfigParamRegistry& options)
220220
{
221221
try {
222-
mRunNumber = options.get<int>("runNumber");
222+
mRunNumber = stoi(options.get<std::string>("runNumber"));
223223
ILOG(Info) << "Run number found in options: " << mRunNumber << ENDM;
224224
} catch (std::invalid_argument& ia) {
225225
ILOG(Info) << "Run number not found in options, using 0 instead." << ENDM;

0 commit comments

Comments
 (0)