Changeset 19437


Ignore:
Timestamp:
Feb 5, 2019, 4:02:38 PM (10 months ago)
Author:
tbretz
Message:
Added a new calibration scheme ('3') which only starts a current calibration if previously no calibration was done.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ratecontrol.cc

    r19386 r19437  
    662662
    663663        case 2:
     664            fThresholdReference = conf.fMinThreshold;
     665            fAverageTime = conf.fAverageTime;
     666            fRequiredEvents = conf.fRequiredEvents;
     667            return CalibrateByCurrent();
     668
     669        case 3: // This is a fast mode which keeps the system running if already running
     670            if (GetCurrentState()==RateControl::State::kInProgress)
     671            {
     672                Info("Keeping previous calibration.");
     673                return GetCurrentState();
     674            }
     675
     676            // If not yet running
    664677            fThresholdReference = conf.fMinThreshold;
    665678            fAverageTime = conf.fAverageTime;
Note: See TracChangeset for help on using the changeset viewer.