Ignore:
Timestamp:
Apr 10, 2011, 12:05:47 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/upload/bncuploadcaster.cpp

    r3236 r3273  
    2727bncUploadCaster::bncUploadCaster(const QString& mountpoint,
    2828                                 const QString& outHost, int outPort,
    29                                  const QString& password, int iRow) {
     29                                 const QString& password, int iRow,
     30                                 int rate) {
    3031  _mountpoint    = mountpoint;
    3132  _outHost       = outHost;
     
    3536  _sOpenTrial    = 0;
    3637  _iRow          = iRow;
     38  _rate          = rate;
     39  if      (_rate < 5) {
     40    _rate = 5;
     41  }
     42  else if (_rate > 60) {
     43    _rate = 60;
     44  }
    3745  _isToBeDeleted = false;
    3846
     
    8189      emit newBytes(_mountpoint.toAscii(), _outBuffer.size());
    8290    }
    83     sleep(5);
     91    sleep(_rate);
    8492  }
    8593}
Note: See TracChangeset for help on using the changeset viewer.