diff --git a/src/downloadingTorrents.cpp b/src/downloadingTorrents.cpp index d4e4638ba..fe6d47fbf 100644 --- a/src/downloadingTorrents.cpp +++ b/src/downloadingTorrents.cpp @@ -605,10 +605,10 @@ bool DownloadingTorrents::updateTorrent(QTorrentHandle h) { } if(!downloadList->isColumnHidden(SEEDSLEECH)) { QString tmp = misc::toQString(h.num_seeds(), true); - if(h.num_complete() >= 0) + if(h.num_complete() >= h.num_seeds()) tmp.append(QString("(")+misc::toQString(h.num_complete())+QString(")")); tmp.append(QString("/")+misc::toQString(h.num_peers() - h.num_seeds(), true)); - if(h.num_incomplete() >= 0) + if(h.num_incomplete() >= (h.num_peers()-h.num_seeds())) tmp.append(QString("(")+misc::toQString(h.num_incomplete())+QString(")")); DLListModel->setData(DLListModel->index(row, SEEDSLEECH), QVariant(tmp)); }