mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-24 02:11:06 +00:00
don't show decimals for 100% progress (100% instead of 100.00%)
This commit is contained in:
parent
751345fc28
commit
1be59bb116
@ -63,7 +63,10 @@ def format_seeds_peers(num, total):
|
||||
return "%d (%d)"%(num,total)
|
||||
|
||||
def format_progress(perc):
|
||||
if perc < 100:
|
||||
return "%.2f%%"%perc
|
||||
else:
|
||||
return "100%"
|
||||
|
||||
def format_pieces(num, size):
|
||||
return "%d (%s)"%(num,deluge.common.fsize(size))
|
||||
|
Loading…
x
Reference in New Issue
Block a user