Changeset 257 in ntrip for trunk/BNC


Ignore:
Timestamp:
Oct 18, 2006, 4:16:22 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r256 r257  
    8686////////////////////////////////////////////////////////////////////////////
    8787void bncCaster::newObs(const QByteArray& staID, const QUrl& mountPoint,
    88                        Observation* obs) {
     88                       bool firstObs, Observation* obs) {
    8989
    9090  QMutexLocker locker(&_mutex);
     
    117117  // ----------------------------------
    118118  if (newTime <= _lastDumpSec) {
    119     QSettings settings;
    120     if ( !settings.value("outFile").toString().isEmpty() ||
    121          !settings.value("outPort").toString().isEmpty() ) {
    122       emit( newMessage(QString("Station %1: old epoch %2 thrown away"
    123                                "(newTime = %3 lastDump = %4)")
    124       .arg(staID.data()).arg(iSec).arg(newTime).arg(_lastDumpSec).toAscii()) );
     119    if (firstObs) {
     120      QSettings settings;
     121      if ( !settings.value("outFile").toString().isEmpty() ||
     122           !settings.value("outPort").toString().isEmpty() ) {
     123        emit( newMessage(QString("Station %1: old epoch %2 thrown away"
     124                                 "(newTime = %3 lastDump = %4)")
     125        .arg(staID.data()).arg(iSec).arg(newTime).arg(_lastDumpSec).toAscii()) );
     126      }
    125127    }
    126128    delete obs;
Note: See TracChangeset for help on using the changeset viewer.