* Set "stopped" stated to newly added torrents, so they stay stopped

when restarting the client.

* Renamed Bencode::operator[] to Bencode::get_key.

* Added progress percentage for hash checking.

* Correctly update the delegator priority when loading resume data
with file priorities.

* Don't allow file names with '\0' in them.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@597 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-11-16 20:46:13 +00:00
parent e8deac9f79
commit cbbad78b6a
5 changed files with 9 additions and 132 deletions
+2 -1
View File
@@ -119,7 +119,8 @@ print_download_status(char* buf, unsigned int length, core::Download* d) {
buf += std::max(0, snprintf(buf, length, "Inactive: "));
if (d->get_download().is_hash_checking())
buf += std::max(0, snprintf(buf, length, "Checking hash"));
buf += std::max(0, snprintf(buf, length, "Checking hash [%2i%%]",
(d->get_download().chunks_hashed() * 100) / d->get_download().chunks_total()));
else if (d->get_download().is_tracker_busy() &&
d->get_download().tracker_focus() < d->get_download().size_trackers())