mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 16:38:43 +00:00
fix percentages for proper ordering of columns
This commit is contained in:
parent
2494d05967
commit
4a65431460
1 changed files with 8 additions and 3 deletions
|
@ -430,8 +430,13 @@ class DelugeGTK:
|
||||||
assert(len(all_files) == len(file_filter))
|
assert(len(all_files) == len(file_filter))
|
||||||
i=0
|
i=0
|
||||||
for f in all_files:
|
for f in all_files:
|
||||||
|
if f['progress'] <= 9:
|
||||||
|
progress = '0''%.2f'%f['progress']
|
||||||
|
else:
|
||||||
|
progress = '%.2f'%f['progress']
|
||||||
|
print "progress is %s" %progress
|
||||||
self.file_store.append([not file_filter[i], f['path'], common.fsize(f['size']),
|
self.file_store.append([not file_filter[i], f['path'], common.fsize(f['size']),
|
||||||
f['offset'], '%.2f%%'%f['progress']])
|
f['offset'], progress])
|
||||||
i=i+1
|
i=i+1
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue