mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 02:18:41 +00:00
Properly show 100.00% and reduce number of progress bar updates during a torrent creation
This commit is contained in:
parent
411ee123f1
commit
20b6791670
2 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
==== GtkUI ====
|
==== GtkUI ====
|
||||||
* Attempt to register as the default magnet uri handler in GNOME on startup
|
* Attempt to register as the default magnet uri handler in GNOME on startup
|
||||||
|
* Properly show 100.00% and reduce number of progress bar updates during a torrent creation
|
||||||
|
|
||||||
=== Deluge 1.2.0_rc4 (24 November 2009) ===
|
=== Deluge 1.2.0_rc4 (24 November 2009) ===
|
||||||
==== Core ====
|
==== Core ====
|
||||||
|
|
|
@ -175,11 +175,12 @@ def makeinfo(path, piece_length, progress, name = None,
|
||||||
piece_count += 1
|
piece_count += 1
|
||||||
done = 0
|
done = 0
|
||||||
sh = sha()
|
sh = sha()
|
||||||
progress(piece_count, num_pieces)
|
progress(piece_count, num_pieces)
|
||||||
h.close()
|
h.close()
|
||||||
if done > 0:
|
if done > 0:
|
||||||
pieces.append(sh.digest())
|
pieces.append(sh.digest())
|
||||||
|
progress(piece_count, num_pieces)
|
||||||
|
|
||||||
if name is not None:
|
if name is not None:
|
||||||
assert isinstance(name, unicode)
|
assert isinstance(name, unicode)
|
||||||
name = to_utf8(name)
|
name = to_utf8(name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue