mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
fix cast oops
This commit is contained in:
parent
3baecc13d3
commit
d497a971db
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ class DetailsTabManager(object):
|
||||||
state = self.last_state
|
state = self.last_state
|
||||||
if state != None:
|
if state != None:
|
||||||
gc.set_foreground(colormap.alloc_color('#2020FF'))
|
gc.set_foreground(colormap.alloc_color('#2020FF'))
|
||||||
progress_window.draw_rectangle(gc, True, 0, top, size[0] * state['progress'], 4)
|
progress_window.draw_rectangle(gc, True, 0, top, int(size[0] * state['progress']), 4)
|
||||||
num_pieces = state["num_pieces"]
|
num_pieces = state["num_pieces"]
|
||||||
for pieces_range in state['pieces']:
|
for pieces_range in state['pieces']:
|
||||||
range_first = pieces_range[0] * size[0] / num_pieces
|
range_first = pieces_range[0] * size[0] / num_pieces
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue