mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
- Fixed upload rate limit
This commit is contained in:
parent
bb9950403d
commit
b63d1f8d11
@ -1160,10 +1160,10 @@ void GUI::configureSession(){
|
|||||||
switch(limits.second){
|
switch(limits.second){
|
||||||
case -1: // Upload limit disabled
|
case -1: // Upload limit disabled
|
||||||
case 0:
|
case 0:
|
||||||
BTSession.setDownloadRateLimit(-1);
|
BTSession.setUploadRateLimit(-1);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
BTSession.setDownloadRateLimit(limits.second*1024);
|
BTSession.setUploadRateLimit(limits.second*1024);
|
||||||
}
|
}
|
||||||
// Apply ratio (0 if disabled)
|
// Apply ratio (0 if disabled)
|
||||||
BTSession.setGlobalRatio(options->getRatio());
|
BTSession.setGlobalRatio(options->getRatio());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user