FACT++  1.0
void DataLogger::TrimOldRunNumbers ( )
private

Check if old run numbers can be trimmed, and if so, do it.

checks if old run numbers should be trimmed and if so, do it

Definition at line 1108 of file datalogger.cc.

References RemoveOldestRunNumber().

Referenced by infoCallback().

1109 {
1110  const Time cTime = Time();
1111 
1112  if (cTime - fPreviousOldRunNumberCheck < boost::posix_time::milliseconds(fRunNumberTimeout))
1113  return;
1114 
1115  while (fRunNumber.size() > 1 && (cTime - fRunNumber.back().time) > boost::posix_time::milliseconds(fRunNumberTimeout))
1116  {
1118  }
1120 }
void RemoveOldestRunNumber()
removes the oldest run number, and close the relevant files.
Definition: datalogger.cc:891
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
Time fPreviousOldRunNumberCheck
variable to track when the statistic were last calculated
Definition: datalogger.cc:231
uint32_t fRunNumberTimeout
old run numbers time-out delay (in seconds)
Definition: datalogger.cc:213
list< RunNumberType > fRunNumber
run numbers
Definition: datalogger.cc:211

+ Here is the call graph for this function:

+ Here is the caller graph for this function: