refactor: omit unnecessary reference in magnet metadata progress (#6311)
This commit is contained in:
parent
ed4fad9b18
commit
f85c3b6f8d
|
@ -382,7 +382,7 @@ double tr_torrentGetMetadataPercent(tr_torrent const* tor)
|
||||||
|
|
||||||
if (auto const& m = tor->incomplete_metadata; m)
|
if (auto const& m = tor->incomplete_metadata; m)
|
||||||
{
|
{
|
||||||
if (auto const& n = m->piece_count; n != 0)
|
if (auto const n = m->piece_count; n != 0)
|
||||||
{
|
{
|
||||||
return (n - std::size(m->pieces_needed)) / static_cast<double>(n);
|
return (n - std::size(m->pieces_needed)) / static_cast<double>(n);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue