mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Clean up code
This commit is contained in:
parent
4f820163ff
commit
f6eb341b32
3 changed files with 3 additions and 3 deletions
|
|
@ -2124,7 +2124,7 @@ QVector<qreal> TorrentHandleImpl::availableFileFractions() const
|
|||
|
||||
const QVector<int> piecesAvailability = pieceAvailability();
|
||||
// libtorrent returns empty array for seeding only torrents
|
||||
if (piecesAvailability.empty()) return QVector<qreal>(filesCount, -1.);
|
||||
if (piecesAvailability.empty()) return QVector<qreal>(filesCount, -1);
|
||||
|
||||
QVector<qreal> res;
|
||||
res.reserve(filesCount);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue