Changeset 3273 in ntrip for trunk/BNC/upload/bncuploadcaster.cpp
- Timestamp:
- Apr 10, 2011, 12:05:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/upload/bncuploadcaster.cpp
r3236 r3273 27 27 bncUploadCaster::bncUploadCaster(const QString& mountpoint, 28 28 const QString& outHost, int outPort, 29 const QString& password, int iRow) { 29 const QString& password, int iRow, 30 int rate) { 30 31 _mountpoint = mountpoint; 31 32 _outHost = outHost; … … 35 36 _sOpenTrial = 0; 36 37 _iRow = iRow; 38 _rate = rate; 39 if (_rate < 5) { 40 _rate = 5; 41 } 42 else if (_rate > 60) { 43 _rate = 60; 44 } 37 45 _isToBeDeleted = false; 38 46 … … 81 89 emit newBytes(_mountpoint.toAscii(), _outBuffer.size()); 82 90 } 83 sleep( 5);91 sleep(_rate); 84 92 } 85 93 }
Note:
See TracChangeset
for help on using the changeset viewer.