mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
Share ratio can now go over 100
This commit is contained in:
parent
a9ce197d04
commit
2da5e03741
4 changed files with 9 additions and 6 deletions
|
@ -349,7 +349,7 @@ void PropertiesWidget::loadDynamicData() {
|
|||
reannounce_lbl->setText(h.next_announce());
|
||||
// Update ratio info
|
||||
const qreal ratio = QBtSession::instance()->getRealRatio(h.hash());
|
||||
if(ratio > 100.)
|
||||
if(ratio > QBtSession::MAX_RATIO)
|
||||
shareRatio->setText(QString::fromUtf8("∞"));
|
||||
else
|
||||
shareRatio->setText(QString(QByteArray::number(ratio, 'f', 2)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue