Changeset 1977 in ntrip


Ignore:
Timestamp:
Nov 17, 2009, 6:15:41 PM (14 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigurelate.cpp

    r1975 r1977  
    9494  QMap<QByteArray, sumAndMean*>::const_iterator it = _bytes.find(staID);
    9595  if (it != _bytes.end()) {
    96     it.value()->_sum += clate;
     96    it.value()->_sum += clate*1000.;
     97    ++_counter;
    9798  }
    9899}
     
    105106  const static int MAXCOUNTER = 10;
    106107
    107   ++_counter;
     108//++_counter;
    108109
    109110  // If counter reaches its maximal value, compute the mean value
    110111  // ------------------------------------------------------------
    111   if (_counter == MAXCOUNTER) {
     112//if (_counter == MAXCOUNTER) {
     113  if (_counter > MAXCOUNTER) {
    112114    _maxLate = 0.0;
    113115    QMapIterator<QByteArray, sumAndMean*> it(_bytes);
     
    150152
    151153  QString maxLateStr;
    152   maxLateStr = QString("%1 sec  ").arg(int(8.0 * _maxLate));
    153   painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+50,15,Qt::AlignRight,tr("0 sec  "));
     154  maxLateStr = QString("%1 ms  ").arg(int(_maxLate/200)*200);
     155  painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+50,15,Qt::AlignRight,tr("0 ms  "));
    154156
    155157  if(_maxLate > 0.0) {
Note: See TracChangeset for help on using the changeset viewer.