From 5907bf254fe7c535011f55ec4c8863a54e902a13 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 31 May 2007 20:20:27 +0000 Subject: [PATCH] lt fix --- glade/delugegtk.glade | 3 ++- libtorrent/src/torrent_handle.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/glade/delugegtk.glade b/glade/delugegtk.glade index ef56e2394..fa23e1135 100644 --- a/glade/delugegtk.glade +++ b/glade/delugegtk.glade @@ -126,6 +126,7 @@ True + 0 3 @@ -892,7 +893,7 @@ True - ETA + Time Remaining True True diff --git a/libtorrent/src/torrent_handle.cpp b/libtorrent/src/torrent_handle.cpp index 44dcba7f5..de6f8d170 100755 --- a/libtorrent/src/torrent_handle.cpp +++ b/libtorrent/src/torrent_handle.cpp @@ -563,6 +563,7 @@ namespace libtorrent for (int j = 0; j < num_bitmask_bytes; ++j) { unsigned char v = 0; + int bits = std::min(num_blocks_per_piece - j*8, 8); for (int k = 0; k < 8; ++k) v |= i->info[j*8+k].finished?(1 << k):0; bitmask.insert(bitmask.end(), v);