mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-14 00:37:58 +00:00
- Fixed a bug in speed allocation per torrent. Libtorrent works better too but I'm still hitting an assert.
This commit is contained in:
parent
766be4b381
commit
2dea5f2ff8
@ -56,9 +56,9 @@ class BandwidthAllocationDialog : public QDialog, private Ui_bandwidth_dlg {
|
||||
if(nbTorrents == 1){
|
||||
torrent_handle h = BTSession->getTorrentHandle(hashes.at(0));
|
||||
if(uploadMode)
|
||||
val = h.upload_limit();
|
||||
val = (int)(h.upload_limit() / 1024.);
|
||||
else
|
||||
val = h.download_limit();
|
||||
val = (int)(h.download_limit() / 1024.);
|
||||
qDebug("Bandwidth limit: %d", val);
|
||||
if(val > bandwidthSlider->maximum() || val < bandwidthSlider->minimum())
|
||||
val = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user