- Timestamp:
- Feb 19, 2010, 4:01:08 PM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r2311 r2312 303 303 // Dump Complete Epochs 304 304 //////////////////////////////////////////////////////////////////////////// 305 void bncCaster::dumpEpochs(long minTime , long maxTime) {305 void bncCaster::dumpEpochs(long minTimeXrate, long maxTimeXrate) { 306 306 307 307 const char begEpoch[] = "BEGEPOCH"; … … 311 311 const int endEpochNBytes = sizeof(endEpoch) - 1; 312 312 313 for (long sec = minTime; sec <= maxTime; sec++) {313 for (long secXrate = minTimeXrate; secXrate <= maxTimeXrate; ++secXrate) { 314 314 315 315 bool first = true; 316 QList<p_obs> allObs = _epochs->values(sec );316 QList<p_obs> allObs = _epochs->values(secXrate); 317 317 318 318 QListIterator<p_obs> it(allObs); … … 320 320 p_obs obs = it.next(); 321 321 322 if (_samplingRate == 0 || sec% _samplingRate == 0) {322 if (_samplingRate == 0 || (secXrate/_maxRate) % _samplingRate == 0) { 323 323 324 324 if (first) { … … 401 401 402 402 delete obs; 403 _epochs->remove(sec );403 _epochs->remove(secXrate); 404 404 first = false; 405 405 } … … 415 415 // Reread several options 416 416 // ---------------------- 417 _maxRate = settings.value("maxRate").toInt(); 418 if (_maxRate < 1) { 419 _maxRate = 1; 420 } 417 _maxRate = 20; 418 421 419 _samplingRate = settings.value("binSampl").toInt(); 422 420 _waitTimeXrate = settings.value("waitTime").toInt() * _maxRate; -
trunk/BNC/bnccaster.h
r2311 r2312 60 60 61 61 private: 62 void dumpEpochs(long minTime , long maxTime);62 void dumpEpochs(long minTimeXrate, long maxTimeXrate); 63 63 static int myWrite(QTcpSocket* sock, const char* buf, int bufLen); 64 64
Note:
See TracChangeset
for help on using the changeset viewer.