fix percentages for proper ordering of columns
This commit is contained in:
parent
2494d05967
commit
4a65431460
|
@ -430,8 +430,13 @@ class DelugeGTK:
|
|||
assert(len(all_files) == len(file_filter))
|
||||
i=0
|
||||
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']),
|
||||
f['offset'], '%.2f%%'%f['progress']])
|
||||
f['offset'], progress])
|
||||
i=i+1
|
||||
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue