Changeset 1977 in ntrip
- Timestamp:
- Nov 17, 2009, 6:15:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncfigurelate.cpp ¶
r1975 r1977 94 94 QMap<QByteArray, sumAndMean*>::const_iterator it = _bytes.find(staID); 95 95 if (it != _bytes.end()) { 96 it.value()->_sum += clate; 96 it.value()->_sum += clate*1000.; 97 ++_counter; 97 98 } 98 99 } … … 105 106 const static int MAXCOUNTER = 10; 106 107 107 108 //++_counter; 108 109 109 110 // If counter reaches its maximal value, compute the mean value 110 111 // ------------------------------------------------------------ 111 if (_counter == MAXCOUNTER) { 112 //if (_counter == MAXCOUNTER) { 113 if (_counter > MAXCOUNTER) { 112 114 _maxLate = 0.0; 113 115 QMapIterator<QByteArray, sumAndMean*> it(_bytes); … … 150 152 151 153 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 ")); 154 156 155 157 if(_maxLate > 0.0) {
Note:
See TracChangeset
for help on using the changeset viewer.