* Fixed the transitions between skipping and downloading pieces.

* Added Object::merge_recursive.

* Save and set the chunks done count for closed torrents.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@733 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-06-30 01:02:41 +00:00
parent 4b79a7c47f
commit 9f2f427e9d
4 changed files with 17 additions and 16 deletions
+6 -4
View File
@@ -123,12 +123,14 @@ print_download_title(char* first, char* last, core::Download* d) {
char*
print_download_info(char* first, char* last, core::Download* d) {
first = print_buffer(first, last, "Torrent: ");
if (!d->download()->is_open())
first = print_buffer(first, last, "closed ");
first = print_buffer(first, last, "[CLOSED] ");
else if (!d->download()->is_active())
first = print_buffer(first, last, "[OPEN] ");
else
first = print_buffer(first, last, " ");
else if (d->is_done())
if (d->is_done())
first = print_buffer(first, last, "done %10.1f MB", (double)d->download()->bytes_total() / (double)(1 << 20));
else
first = print_buffer(first, last, "%6.1f / %6.1f MB",