mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
fix last
This commit is contained in:
parent
a111d8e648
commit
b5e898721d
1 changed files with 1 additions and 7 deletions
|
@ -69,13 +69,7 @@ def fsize(fsize_b):
|
|||
if fsize_mb < 1000:
|
||||
return "%.1f %s" % (fsize_mb, _("MiB"))
|
||||
fsize_gb = float (fsize_mb / 1024.0)
|
||||
if fsize_gb < 1000:
|
||||
return "%.1f %s" % (fsize_gb, _("GiB"))
|
||||
fsize_tb = float (fsize_gb / 1024.0)
|
||||
if fsize_tb < 1000:
|
||||
return "%.1f %s" % (fsize_tb, _("TiB"))
|
||||
fsize_pb = float (fsize_tb / 1024.0)
|
||||
return "%.1f %s" % (fsize_pb, _("PiB"))
|
||||
return "%.1f %s" % (fsize_gb, _("GiB"))
|
||||
|
||||
# Returns a formatted string representing a percentage
|
||||
def fpcnt(dec):
|
||||
|
|
Loading…
Add table
Reference in a new issue