Changeset 8880 in ntrip


Ignore:
Timestamp:
Dec 17, 2019, 10:54:21 AM (4 years ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnccaster.cpp

    r8678 r8880  
    9898  _outLockTime = settings.value("outLockTime",false).toBool();
    9999  _samplingRateMult10 = int(settings.value("outSampl").toString().split("sec").first().toDouble() * 10.0);
    100   _outWait            = settings.value("outWait").toDouble();
    101   if (_outWait <= 0.0) {
    102     _outWait = 0.01;
     100  _outWait            = settings.value("outWait").toInt();
     101  if (_outWait < 1) {
     102    _outWait = 1;
    103103  }
    104104  _confInterval = -1;
     
    223223    // Dump Epochs
    224224    // -----------
    225     if (obs._time - _outWait > _lastDumpTime) {
    226       dumpEpochs(obs._time - _outWait);
    227       _lastDumpTime = obs._time - _outWait;
     225    double outWait = (double)_outWait;
     226    if ((obs._time - outWait) > _lastDumpTime) {
     227      dumpEpochs(obs._time - outWait);
     228      _lastDumpTime = obs._time - outWait;
    228229    }
    229230  }
  • trunk/BNC/src/bnccaster.h

    r8621 r8880  
    7979   bool                            _outLockTime;
    8080   int                             _samplingRateMult10;
    81    double                          _outWait;
     81   int                             _outWait;
    8282   QMutex                          _mutex;
    8383   int                             _confInterval;
Note: See TracChangeset for help on using the changeset viewer.