This commit is contained in:
Marcos Pinto 2007-05-31 20:20:27 +00:00
parent 5e70f78df0
commit 5907bf254f
2 changed files with 3 additions and 1 deletions

View File

@ -126,6 +126,7 @@
<child>
<widget class="GtkLabel" id="summary_eta">
<property name="visible">True</property>
<property name="xalign">0</property>
</widget>
<packing>
<property name="left_attach">3</property>
@ -892,7 +893,7 @@
<child>
<widget class="GtkCheckMenuItem" id="chk_eta">
<property name="visible">True</property>
<property name="label" translatable="yes">ETA</property>
<property name="label" translatable="yes">Time Remaining</property>
<property name="use_underline">True</property>
<property name="active">True</property>
<signal name="toggled" handler="eta_toggle"/>

View File

@ -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);