|
|
|
@ -304,13 +304,13 @@ int TransferListWidget::updateTorrent(int row) {
@@ -304,13 +304,13 @@ int TransferListWidget::updateTorrent(int row) {
|
|
|
|
|
listModel->setData(listModel->index(row, DLSPEED), QVariant((double)h.download_payload_rate())); |
|
|
|
|
// Connected_seeds*100000+total_seeds*10 (if total_seeds is available)
|
|
|
|
|
// Connected_seeds*100000+1 (if total_seeds is unavailable)
|
|
|
|
|
qulonglong seeds = h.num_seeds()*100000; |
|
|
|
|
qulonglong seeds = h.num_seeds()*1000000; |
|
|
|
|
if(h.num_complete() >= h.num_seeds()) |
|
|
|
|
seeds += h.num_complete()*10; |
|
|
|
|
else |
|
|
|
|
seeds += 1; |
|
|
|
|
listModel->setData(listModel->index(row, SEEDS), QVariant(seeds)); |
|
|
|
|
qulonglong peers = (h.num_peers()-h.num_seeds())*100000; |
|
|
|
|
qulonglong peers = (h.num_peers()-h.num_seeds())*1000000; |
|
|
|
|
if(h.num_incomplete() >= (h.num_peers()-h.num_seeds())) |
|
|
|
|
peers += h.num_incomplete()*10; |
|
|
|
|
else |
|
|
|
|