fix percentages for proper ordering of columns

This commit is contained in:
Marcos Pinto 2007-06-01 08:42:11 +00:00
parent 2494d05967
commit 4a65431460
1 changed files with 8 additions and 3 deletions

View File

@ -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