Skip to content

Commit

Permalink
do not use a random value between 0 and period for initialization but…
Browse files Browse the repository at this point in the history
… something around the actual period +/- random. Otherwise, a lot of processes will push after start of run
  • Loading branch information
davidrohr authored and mkrzewic committed Dec 11, 2015
1 parent 6e7c08f commit e7cf62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HLT/BASE/AliHLTComponent.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2309,7 +2309,7 @@ int AliHLTComponent::ProcessEvent( const AliHLTComponentEventData& evtData,
#endif
gRandom->SetSeed(ts.tv_nsec);
fLastPushBackTime=time.GetSec();
fLastPushBackTime-=gRandom->Integer(fPushbackPeriod);
fLastPushBackTime+=fPushbackPeriod/2-gRandom->Integer(fPushbackPeriod);
//HLTImportant("time: %i, fLastPushBackTime: %i",(int)time.GetSec(),fLastPushBackTime);
} else if ((int)time.GetSec()-fLastPushBackTime >= fPushbackPeriod) {
if (outputBlockCnt) fLastPushBackTime=time.GetSec() - gRandom->Integer(fPushbackPeriod/3);
Expand Down

0 comments on commit e7cf62f

Please sign in to comment.