minor fix to num_seeds
This commit is contained in:
parent
6e65851b2d
commit
430ff6d7b4
|
@ -12224,7 +12224,7 @@ namespace libtorrent
|
||||||
st->pieces.resize(num_pieces, false);
|
st->pieces.resize(num_pieces, false);
|
||||||
}
|
}
|
||||||
st->num_pieces = num_have();
|
st->num_pieces = num_have();
|
||||||
st->num_seeds = num_seeds();
|
st->num_seeds = num_seeds() - int(m_num_connecting_seeds);
|
||||||
if ((flags & torrent_handle::query_distributed_copies) && m_picker.get())
|
if ((flags & torrent_handle::query_distributed_copies) && m_picker.get())
|
||||||
{
|
{
|
||||||
boost::tie(st->distributed_full_copies, st->distributed_fraction) =
|
boost::tie(st->distributed_full_copies, st->distributed_fraction) =
|
||||||
|
|
|
@ -149,7 +149,7 @@ namespace libtorrent
|
||||||
res = ConvertUTF32toUTF8(const_cast<const UTF32**>(&cp), cp + 1, &start, start + 5, lenientConversion);
|
res = ConvertUTF32toUTF8(const_cast<const UTF32**>(&cp), cp + 1, &start, start + 5, lenientConversion);
|
||||||
TORRENT_ASSERT(res == conversionOK);
|
TORRENT_ASSERT(res == conversionOK);
|
||||||
|
|
||||||
for (int i = 0; i < start - sequence; ++i)
|
for (int i = 0; i < std::min(5, int(start - sequence)); ++i)
|
||||||
tmp_path += char(sequence[i]);
|
tmp_path += char(sequence[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue