mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
lt fix
This commit is contained in:
parent
5e70f78df0
commit
5907bf254f
2 changed files with 3 additions and 1 deletions
|
@ -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"/>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue