Changeset 6758 in ntrip for trunk/BNC/src/latencychecker.cpp


Ignore:
Timestamp:
Apr 3, 2015, 9:06:11 AM (9 years ago)
Author:
weber
Message:

Bug in outage reports fixed

File:
1 edited

Legend:

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

    r6645 r6758  
    156156  _decodeSucc = QDateTime::currentDateTime();
    157157
     158  _decodeStart = QDateTime::currentDateTime();
    158159  _decodeStop = QDateTime::currentDateTime();
    159160 
     
    168169//////////////////////////////////////////////////////////////////////////////
    169170void latencyChecker::checkReconnect() {
     171
     172  if (_inspSegm == 0) { return;} // weber
    170173
    171174  // Begin outage threshold
     
    182185      callScript(("Begin_Outage "
    183186                    + _begDateOut + " " + _begTimeOut).toAscii());
    184       _decodeStart = QDateTime::currentDateTime();
    185     }
    186   }
     187    }
     188  }
     189  _fromReconnect = true;
     190  _decodeStart = QDateTime::currentDateTime();
    187191}
    188192
     
    280284  }
    281285
     286  if (_fromReconnect) {
     287    _decodeStart = QDateTime::currentDateTime();
     288  }
     289
    282290  // End outage threshold
    283291  // --------------------
     
    300308    }
    301309  }
     310  _fromReconnect = false;
    302311  _decodeStop = QDateTime::currentDateTime();
    303312}
Note: See TracChangeset for help on using the changeset viewer.