forked from premiere/premiere-libtorrent
fix overflow bug in progress_ppm field
This commit is contained in:
parent
23c477142e
commit
dd2db79896
|
@ -101,6 +101,7 @@
|
||||||
incoming connection
|
incoming connection
|
||||||
* added more detailed instrumentation of the disk I/O thread
|
* added more detailed instrumentation of the disk I/O thread
|
||||||
|
|
||||||
|
* fix overflow bug in progress_ppm field
|
||||||
* don't filter local peers received from a non-local tracker
|
* don't filter local peers received from a non-local tracker
|
||||||
* fix python deadlock when using python extensions
|
* fix python deadlock when using python extensions
|
||||||
* fixed small memory leak in DHT
|
* fixed small memory leak in DHT
|
||||||
|
|
|
@ -3824,7 +3824,7 @@ namespace libtorrent
|
||||||
#else
|
#else
|
||||||
p.progress = (float)p.pieces.count() / (float)p.pieces.size();
|
p.progress = (float)p.pieces.count() / (float)p.pieces.size();
|
||||||
#endif
|
#endif
|
||||||
p.progress_ppm = p.pieces.count() * 1000000 / p.pieces.size();
|
p.progress_ppm = boost::uint64_t(p.pieces.count()) * 1000000 / p.pieces.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
p.estimated_reciprocation_rate = m_est_reciprocation_rate;
|
p.estimated_reciprocation_rate = m_est_reciprocation_rate;
|
||||||
|
|
Loading…
Reference in New Issue