mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
fewer calls to hash()
This commit is contained in:
parent
5d2663660d
commit
bbc4080a5d
5 changed files with 8 additions and 9 deletions
|
@ -335,7 +335,7 @@ void PropertiesWidget::loadDynamicData() {
|
|||
// Update next announce time
|
||||
reannounce_lbl->setText(h.next_announce());
|
||||
// Update ratio info
|
||||
const qreal ratio = QBtSession::instance()->getRealRatio(h.hash());
|
||||
const qreal ratio = QBtSession::instance()->getRealRatio(h);
|
||||
shareRatio->setText(ratio > QBtSession::MAX_RATIO ? QString::fromUtf8("∞") : misc::accurateDoubleToString(ratio, 2));
|
||||
if (!h.is_seed() && h.has_metadata()) {
|
||||
showPiecesDownloaded(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue