mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 18:04:32 +00:00
- Added some more debug
This commit is contained in:
parent
8b26b7fd48
commit
320c125d17
@ -682,6 +682,7 @@ void bittorrent::saveFastResumeAndRatioData(){
|
|||||||
h.pause();
|
h.pause();
|
||||||
QString fileHash = QString(misc::toString(h.info_hash()).c_str());
|
QString fileHash = QString(misc::toString(h.info_hash()).c_str());
|
||||||
while(!receivedPausedAlert(fileHash)){
|
while(!receivedPausedAlert(fileHash)){
|
||||||
|
qDebug("Sleeping while waiting that %s is paused", misc::toString(h.info_hash()).c_str());
|
||||||
SleeperThread::msleep(500);
|
SleeperThread::msleep(500);
|
||||||
readAlerts();
|
readAlerts();
|
||||||
}
|
}
|
||||||
@ -791,6 +792,7 @@ session* bittorrent::getSession() const{
|
|||||||
// Set upload rate limit
|
// Set upload rate limit
|
||||||
// -1 to disable
|
// -1 to disable
|
||||||
void bittorrent::setUploadRateLimit(long rate){
|
void bittorrent::setUploadRateLimit(long rate){
|
||||||
|
qDebug("set upload_limit to %fkb/s", rate/1024.);
|
||||||
s->set_upload_rate_limit(rate);
|
s->set_upload_rate_limit(rate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user