Changeset 5951 in ntrip for trunk/BNC


Ignore:
Timestamp:
Aug 16, 2014, 2:31:32 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/PPP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppRun.cpp

    r5950 r5951  
    101101    _rnxNavFile = 0;
    102102    _corrFile   = 0;
    103     _maxSpeed   = 0;
    104103    _speed      = 0;
    105104    connect(this, SIGNAL(progressRnxPPP(int)), BNC_CORE, SIGNAL(progressRnxPPP(int)));
     
    382381    ++nEpo;
    383382
    384     if (_maxSpeed != 0) {
    385       QMutexLocker locker(&_mutex);
    386       if (_speed < _maxSpeed) {
    387         double sleepTime = 0.02 * _maxSpeed / _speed;
    388         t_pppThread::msleep(sleepTime*1.e3);
    389       }
     383    if (_speed < 100) {
     384      double sleepTime = 2.0 / _speed;
     385      t_pppThread::msleep(sleepTime*1.e3);
    390386    }
    391387
  • trunk/BNC/src/PPP/pppRun.h

    r5940 r5951  
    6363  t_rnxNavFile* _rnxNavFile;
    6464  t_corrFile*   _corrFile;
    65   int           _maxSpeed;
    6665  int           _speed;
    6766};
Note: See TracChangeset for help on using the changeset viewer.