From e94335ec7ff5ba5e0b23aeb7a1fc1fa264226d94 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 19 Feb 2014 08:50:59 +0000 Subject: [PATCH] merged python example fix from RC_0_16 --- bindings/python/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bindings/python/client.py b/bindings/python/client.py index 3a244daa8..05687cbf5 100755 --- a/bindings/python/client.py +++ b/bindings/python/client.py @@ -301,10 +301,9 @@ def main(): try: out = '\n' fp = h.file_progress() - fp = 0 ti = h.get_torrent_info() for f,p in zip(ti.files(), fp): - out += progress_bar(p / f.size, 20) + out += progress_bar(p / float(f.size), 20) out += ' ' + f.path + '\n' write_line(console, out) except: