*** empty log message ***

This commit is contained in:
Arvid Norberg 2003-10-31 12:07:07 +00:00
parent 4016e3111b
commit d48b92cfb0
2 changed files with 11 additions and 1 deletions

View File

@ -49,6 +49,8 @@ POSSIBILITY OF SUCH DAMAGE.
*
*/
// TODO: add std::string comment() and creation_date()
namespace libtorrent
{

View File

@ -417,10 +417,18 @@ namespace libtorrent
assert(m_unverified_blocks == m_picker.unverified_blocks());
int blocks_we_have = num_pieces * blocks_per_piece;
const int last_piece = m_torrent_file.num_pieces()-1;
if (p[last_piece])
{
blocks_we_have += m_picker.blocks_in_piece(last_piece)
- blocks_per_piece;
}
// TODO: Implement total download and total_upload
st.total_download = 0;
st.total_upload = 0;
st.progress = (num_pieces * blocks_per_piece + m_unverified_blocks)
st.progress = (blocks_we_have + m_unverified_blocks)
/ static_cast<float>(total_blocks);
if (num_pieces == p.size())