Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Barthelemy committed Nov 22, 2023
1 parent 27826f2 commit 7f3e959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Framework/src/TaskRunner.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,13 @@ void TaskRunner::finishCycle(DataAllocator& outputs)

// register ourselves to the BK at the first cycle
if (mCycleNumber == 0 && gSystem->Getenv("O2_QC_REGISTER_IN_BK")) { // until we are sure it works, we have to turn it on
ILOG(Debug, Devel) << "Registering taskRunner to BookKeeping" << ENDM;
ILOG(Debug, Devel) << "Registering taskRunner to BookKeeping" << ENDM;
try {
Bookkeeping::getInstance().registerProcess(mActivity.mId, mTaskConfig.taskName, mTaskConfig.detectorName, bookkeeping::DPL_PROCESS_TYPE_QC_TASK, "");
if(gSystem->Getenv("O2_QC_REGISTER_IN_BK_X_times")) {
if (gSystem->Getenv("O2_QC_REGISTER_IN_BK_X_times")) {
ILOG(Debug, Devel) << "O2_QC_REGISTER_IN_BK_X_times set to " << gSystem->Getenv("O2_QC_REGISTER_IN_BK_X_times") << ENDM;
int iterations = std::stoi(gSystem->Getenv("O2_QC_REGISTER_IN_BK_X_times"));
for(int i = 1 ; i < iterations ; i++) { // start at 1 because we already did it once
for (int i = 1; i < iterations; i++) { // start at 1 because we already did it once
Bookkeeping::getInstance().registerProcess(mActivity.mId, mTaskConfig.taskName, mTaskConfig.detectorName, bookkeeping::DPL_PROCESS_TYPE_QC_TASK, "");
}
}
Expand Down

0 comments on commit 7f3e959

Please sign in to comment.