Changeset 1935 in ntrip


Ignore:
Timestamp:
Nov 12, 2009, 8:20:30 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigure.cpp

    r1934 r1935  
    101101  ++_counter;
    102102
    103   QMapIterator<QByteArray, sumAndMean*> it(_bytes);
    104   while (it.hasNext()) {
    105     it.next();
    106     it.value()->_mean = it.value()->_sum / _counter;
    107     if (_counter == MAXCOUNTER) {
    108       it.value()->_sum  = 0.0;
    109     }
    110   }
    111 
     103  // If counter reaches its maximal value, compute the mean rate
     104  // -----------------------------------------------------------
    112105  if (_counter == MAXCOUNTER) {
     106    QMapIterator<QByteArray, sumAndMean*> it(_bytes);
     107    while (it.hasNext()) {
     108      it.next();
     109      it.value()->_mean = it.value()->_sum / _counter;
     110        it.value()->_sum  = 0.0;
     111     }
    113112    _counter = 0;
    114113  }
    115114
    116115  update();
     116
    117117  QTimer::singleShot(1000, this, SLOT(slotNextAnimationFrame()));
    118118}
Note: See TracChangeset for help on using the changeset viewer.