Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Framework/Core/src/LifetimeHelpers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ ExpirationHandler::Handler LifetimeHelpers::enumerate(ConcreteDataMatcher const&
dh.payloadSerializationMethod = gSerializationMethodNone;
dh.tfCounter = timestamp;
try {
dh.runNumber = atoi(services.get<DataTakingContext>().runNumber.c_str());
dh.runNumber = strtoull(services.get<RawDeviceService>().device()->fConfig->GetProperty<std::string>("runNumber", "0").c_str(), nullptr, 10);
} catch (...) {
dh.runNumber = 0;
}
Expand Down
5 changes: 4 additions & 1 deletion Framework/Core/test/test_SimpleTimer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const&)
InputSpec{"atimer", "TST", "TIMER", 0, Lifetime::Timer}},
{},
AlgorithmSpec{
adaptStateless([](ControlService& control) {
adaptStateless([](ControlService& control, InputRecord& inputs) {
DataRef ref = inputs.get("atimer");
auto* header = o2::header::get<o2::header::DataHeader*>(ref.header);
LOG(info) << "Run number: " << header->runNumber;
// This is invoked autonomously by the timer.
control.readyToQuit(QuitRequest::Me);
})}},
Expand Down